galerie-site/Dockerfile
2020-11-27 18:43:47 +01:00

20 lines
341 B
Docker

FROM python:3.8-alpine as build
WORKDIR /app
COPY Pipfile* /app/
RUN pip install pipenv && pipenv install --system
COPY app.py /app/app.py
COPY templates/ /app/templates
COPY data/ /app/data
RUN python ./app.py
FROM nginx:1.19-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist/ /usr/share/nginx/html/