Skip to content

Commit

Permalink
Also build docs in Docker container (#255)
Browse files Browse the repository at this point in the history
Co-authored-by: Duco <git@ducode.org>
  • Loading branch information
dukeofharen and Duco committed Aug 7, 2022
1 parent 1f5ba37 commit 6e90e43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Expand Up @@ -12,11 +12,18 @@ WORKDIR /app
COPY . ./
RUN cd gui && npm install && npm run build

# Build docs
FROM python:slim-bullseye AS doc-build-env
WORKDIR /app
COPY . ./
RUN cd docs/httpl-docs && pip install mkdocs && python sync.py && mkdocs build && cp -r site /app

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
COPY --from=build-env /app/out .
COPY --from=gui-build-env /app/gui/dist ./gui
COPY --from=doc-build-env /app/site/. ./gui/docs
ENV inputFile=/var/httplaceholder
RUN mkdir /var/httplaceholder
ENTRYPOINT ["dotnet", "HttPlaceholder.dll"]

0 comments on commit 6e90e43

Please sign in to comment.