Files
nessi f5d8b4189c chore: add static directory to Docker image build with COPY instruction
Add COPY static ./static to Dockerfile to include static assets (CSS/JS/images) in container image alongside templates directory
2026-08-17 19:42:10 +02:00

13 lines
445 B
Docker

FROM python:3.13-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg mdadm util-linux smartmontools udev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY templates ./templates
COPY static ./static
EXPOSE 8099
CMD ["gunicorn", "--bind", "0.0.0.0:8099", "--workers", "1", "--threads", "4", "--timeout", "120", "app:app"]