galerie-site/Dockerfile
Julius a39c557cd5
All checks were successful
continuous-integration/drone/push Build is passing
januari update
2022-01-16 22:29:15 +01:00

21 lines
371 B
Docker

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