gctGenerator/dockerfiles/Deploy.Dockerfile
Matteias Collet 0b7ac3d6cc update node
2022-07-14 18:49:53 +00:00

18 lines
444 B
Docker

FROM mcr.microsoft.com/powershell:latest AS prebuild
WORKDIR /src
COPY . .
RUN pwsh -File ./scripts/build_archives.ps1
FROM node:18-bullseye AS build
WORKDIR /src
COPY --from=prebuild /src .
RUN npm i
RUN npm run build
FROM mcr.microsoft.com/powershell:latest AS final
WORKDIR /src
RUN apt-get update
RUN apt install -y git
COPY ./scripts/deploy.ps1 ./deploy.ps1
COPY --from=build /src/site/.vuepress/dist ./dist
CMD [ "pwsh", "deploy.ps1" ]