1 2 3 4 5 6 7 8 9 10 11 12 13
FROM python:3.8 RUN pip install pipenv WORKDIR /usr/src/app COPY Pipfile Pipfile.lock ./ RUN pipenv install --system --deploy COPY . ./ ENV FLASK_APP=herrschwarzify ENV FLASK_ENV=production ENV FLASK_RUN_HOST=0.0.0.0 ENV FLASK_RUN_PORT=5000 EXPOSE 5000 ENTRYPOINT flask run