mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
12 lines
295 B
Docker
12 lines
295 B
Docker
FROM node:dubnium-alpine as builder
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn
|
|
COPY . .
|
|
RUN yarn build
|
|
|
|
FROM nginx:alpine
|
|
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
COPY --from=builder /build /usr/share/nginx/html
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
|
|