20 lines
287 B
Docker
20 lines
287 B
Docker
FROM python:3.8-slim-buster
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt update && \
|
|
pip install --upgrade pip
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
RUN flask db stamp head
|
|
RUN flask db migrate
|
|
RUN flask db upgrade
|