2020-06-29 10:23:45 +09:00
|
|
|
FROM mcr.microsoft.com/powershell:latest AS prebuild
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
RUN pwsh -File ./scripts/build_archives.ps1
|
|
|
|
|
2022-07-15 03:54:20 +09:00
|
|
|
FROM node:16.16-bullseye AS build
|
2020-06-29 10:23:45 +09:00
|
|
|
WORKDIR /src
|
|
|
|
COPY --from=prebuild /src .
|
2021-10-10 22:45:53 +09:00
|
|
|
RUN npm i
|
|
|
|
RUN npm run build
|
2020-06-29 10:23:45 +09:00
|
|
|
|
|
|
|
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
|
2020-07-01 13:55:31 +09:00
|
|
|
COPY --from=build /src/site/.vuepress/dist ./dist
|
2020-06-29 10:23:45 +09:00
|
|
|
CMD [ "pwsh", "deploy.ps1" ]
|