model-space / Dockerfile
Gagan0141's picture
Update Dockerfile
523272b verified
raw
history blame contribute delete
268 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_RUN_PORT=7860
ENV PYTHONUNBUFFERED=1
CMD ["flask", "run"]