gctGenerator/dockerfiles/Serve.Dockerfile

17 lines
358 B
Text
Raw Normal View History

FROM mcr.microsoft.com/powershell:latest AS prebuild
2020-06-29 07:39:07 +09:00
WORKDIR /src
COPY . .
RUN pwsh -File ./scripts/build_archives.ps1
FROM node:lts-buster AS build
WORKDIR /src
COPY --from=prebuild /src .
2020-06-29 07:39:07 +09:00
RUN yarn
RUN yarn build
FROM httpd:latest AS final
WORKDIR /usr/local/apache2/htdocs/
2020-07-01 13:55:31 +09:00
COPY --from=build /src/site/.vuepress/dist .
2020-06-29 07:39:07 +09:00
EXPOSE 80
CMD ["httpd-foreground"]