parent
36dfd92bab
commit
3787d8bdc9
17
Dockerfile
17
Dockerfile
|
@ -1,15 +1,8 @@
|
||||||
FROM node:18-alpine3.17 as npmpackages
|
FROM ghcr.io/getzola/zola:v0.17.0 as zola
|
||||||
WORKDIR /app
|
WORKDIR /site
|
||||||
COPY package.json .
|
COPY src/blog/ /site
|
||||||
RUN npm install
|
CMD ["build"]
|
||||||
|
|
||||||
FROM node:18-alpine3.17 as builder
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=npmpackages /app /app
|
|
||||||
COPY . .
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
RUN rm -r /usr/share/nginx/html/
|
RUN rm -r /usr/share/nginx/html/
|
||||||
COPY --from=builder /app/_site/ /usr/share/nginx/html/
|
COPY --from=zola /site/_site/ /usr/share/nginx/html/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue