gctGenerator/dockerfiles/Deploy.Dockerfile
Matteias Collet 527ed6fbc5
Presets and categories (#73)
* add code categories

* add exclusives and dependencies

* add code selection presets

* remove standard category from some codes

* remove presets from nozzle lock

* reset preset selection on select & unselect stage loader

* update some translations

* remove stage loader from selection when changing versions

* add stage loader help text & warn when changing version if a code is selected

* prevent selecting disabled codes

* drop yarn in favor of npm

* Update Codes.xml

* reset code preset select on cancel

* minor style changes
2021-10-10 15:45:53 +02:00

18 lines
443 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 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" ]