17 lines
294 B
Docker
17 lines
294 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY app.py .
|
|
COPY templates/ templates/
|
|
COPY sites.conf .
|
|
|
|
RUN mkdir -p uploads
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:5000", "--access-logfile", "-", "app:app"]
|