TestingSpace / Dockerfile
vatsal-p-wa's picture
Create Dockerfile
b8a3a9c verified
raw
history blame contribute delete
277 Bytes
# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
WORKDIR /python-docker
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
EXPOSE 7860
COPY . .
ENV FLASK_APP=app.py
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=7860"]