flaskportfolio / Dockerfile
Simrandhiman's picture
Update Dockerfile
ee537ef verified
raw
history blame contribute delete
251 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
# Run Flask properly
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_RUN_PORT=7860
CMD ["flask", "run"]