You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
307 B

FROM python:3.8-slim-buster
WORKDIR /python-docker
ENV FLASK_ENV=production
COPY requirements.txt requirements.txt
RUN apt update && apt install -y libmagic-dev && apt clean
RUN pip3 install -r requirements.txt
COPY . .
RUN flask db upgrade
CMD [ "flask", "run", "-h", "" ]