gctGenerator/dockerfiles/Serve.Dockerfile
Matteias Collet f8f0d45b0a wip
2020-07-01 08:52:12 +02:00

17 lines
No EOL
358 B
Docker

FROM mcr.microsoft.com/powershell:latest AS prebuild
WORKDIR /src
COPY . .
RUN pwsh -File ./scripts/build_archives.ps1
FROM node:lts-buster AS build
WORKDIR /src
COPY --from=prebuild /src .
RUN yarn
RUN yarn build
FROM httpd:latest AS final
WORKDIR /usr/local/apache2/htdocs/
COPY --from=build /src/site/.vuepress/dist .
EXPOSE 80
CMD ["httpd-foreground"]