2020-11-27 18:43:47 +01:00
|
|
|
FROM python:3.8-alpine as build
|
2019-06-08 13:33:13 +02:00
|
|
|
|
2020-03-20 11:08:49 +01:00
|
|
|
WORKDIR /app
|
|
|
|
|
2020-09-03 18:24:17 +02:00
|
|
|
COPY Pipfile* /app/
|
|
|
|
|
2020-03-20 11:08:49 +01:00
|
|
|
RUN pip install pipenv && pipenv install --system
|
2019-06-08 13:33:13 +02:00
|
|
|
|
2020-11-27 18:43:47 +01:00
|
|
|
COPY app.py /app/app.py
|
|
|
|
COPY templates/ /app/templates
|
|
|
|
COPY data/ /app/data
|
2021-11-14 16:08:44 +01:00
|
|
|
COPY hash /app/hash
|
2020-09-03 18:24:17 +02:00
|
|
|
|
2020-11-27 18:43:47 +01:00
|
|
|
RUN python ./app.py
|
2020-09-03 18:24:17 +02:00
|
|
|
|
2020-11-27 18:43:47 +01:00
|
|
|
FROM nginx:1.19-alpine
|
2019-06-08 19:54:47 +02:00
|
|
|
|
2020-11-27 18:43:47 +01:00
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
2019-06-08 13:33:13 +02:00
|
|
|
|
2020-11-27 18:43:47 +01:00
|
|
|
COPY --from=build /app/dist/ /usr/share/nginx/html/
|