CX2443 / Dockerfile
Shinhati2023's picture
Create Dockerfile
18f3bfb verified
Raw History Blame Contribute Delete
218 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
EXPOSE 7860
CMD ["flask", "run", "--port=7860"]