mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
14 lines
342 B
Docker
14 lines
342 B
Docker
# stage1 as builder
|
|
WORKDIR /
|
|
FROM node:erbium-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 /dist /usr/share/nginx/html
|
|
EXPOSE ${EXPOSE} 80
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|