my-homepage/Dockerfile
2021-02-28 01:28:04 +00:00

14 lines
237 B
Docker

FROM python:3.8
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
ENV FLASK_APP my_homepage
ENV FLASK_ENV production
COPY . .
CMD ["gunicorn", "-b", "0.0.0.0:4040", "my_homepage:create_app()"]