CTF_Site/Dockerfile

18 lines
246 B
Docker

FROM python:3.7 as build
RUN pip install pipenv
WORKDIR /app
COPY Pipf* /app/
RUN pipenv install --system --deploy --ignore-pipfile
COPY . /app
RUN mkdocs build
FROM nginx:alpine
COPY --from=build /app/site /usr/share/nginx/html
EXPOSE 80