gctGenerator/dockerfiles/Serve.Dockerfile
2020-06-29 23:31:44 +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/docs/.vuepress/dist .
EXPOSE 80
CMD ["httpd-foreground"]