forked from Trivernis/no-chromium
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.
23 lines
434 B
Plaintext
23 lines
434 B
Plaintext
1 year ago
|
FROM docker.io/node:19.5.0-alpine AS builder
|
||
|
|
||
|
# install dependencies
|
||
|
WORKDIR /app
|
||
|
COPY package.json package-lock.json ./
|
||
|
RUN npm ci
|
||
|
|
||
|
# Copy all local files into the image.
|
||
|
COPY . .
|
||
|
|
||
|
RUN npm run build
|
||
|
|
||
|
###
|
||
|
# Only copy over the Node pieces we need
|
||
|
# ~> Saves 35MB
|
||
|
###
|
||
|
FROM docker.io/nginx:alpine
|
||
|
|
||
|
WORKDIR /app
|
||
|
COPY --from=builder /app/build /usr/share/nginx/html
|
||
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||
|
|
||
|
CMD ["nginx", "-g", "daemon off;"]
|