You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
369 B
Plaintext
20 lines
369 B
Plaintext
2 years ago
|
FROM docker.io/node:16.19.0-alpine AS builder
|
||
|
|
||
|
# install dependencies
|
||
|
WORKDIR /app
|
||
|
RUN apk add zola
|
||
|
|
||
|
# Copy all local files into the image.
|
||
|
COPY . .
|
||
|
|
||
|
# Build
|
||
|
RUN zola build
|
||
|
|
||
|
# Build the runtime image
|
||
|
FROM docker.io/nginx:alpine
|
||
|
|
||
|
WORKDIR /app
|
||
|
COPY --from=builder /app/public /usr/share/nginx/html
|
||
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||
|
|
||
|
CMD ["nginx", "-g", "daemon off;"]
|