13 lines
234 B
Docker
13 lines
234 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN pip install --no-cache-dir -r dependencies.txt
|
|
|
|
ENV FLASK_ENV=production
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
CMD ["sh", "-c", "python -m db.InitDB && gunicorn app:app -b 0.0.0.0:80 --workers 1"]
|