CTF_Site/Dockerfile

18 lines
246 B
Docker
Raw Normal View History

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
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
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