16 lines
318 B
Docker
16 lines
318 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY frontend/requirements.txt /tmp/requirements.txt
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt
|
|
|
|
COPY frontend/ /app/
|
|
|
|
EXPOSE 5001
|
|
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:5001", "app:app"]
|