aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-nginx/Dockerfile
blob: 9b9c7b7862b4f915014c385542bc0e718258f6c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM node:latest AS build-www
RUN npm install -g pnpm
COPY sites/www /sites/www
WORKDIR /sites/www
RUN pnpm install --frozen-lockfile && pnpm run build

FROM klakegg/hugo AS build-blog
COPY sites/blog /hugo
WORKDIR /hugo
RUN hugo

FROM nginx:latest
COPY --from=build-www /sites/www/dist /srv/www
COPY --from=build-blog /hugo/public /srv/blog