2019-06-13 18:06:08 +02:00
|
|
|
FROM python:3.7 as build
|
2019-06-13 16:01:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
RUN pip install pipenv
|
|
|
|
|
|
|
|
WORKDIR /app
|
2019-06-13 21:41:08 +02:00
|
|
|
COPY Pipf* /app/
|
2019-06-13 16:01:22 +02:00
|
|
|
|
2019-06-13 18:06:08 +02:00
|
|
|
RUN pipenv install --system --deploy --ignore-pipfile
|
|
|
|
|
2019-06-13 21:41:08 +02:00
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
|
2019-06-13 18:06:08 +02:00
|
|
|
RUN mkdocs build
|
|
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=build /app/site /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|