mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
copying build, not dist
This commit is contained in:
parent
7735d11019
commit
faed11bb79
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
# stage1 as builder
|
# stage1 as builder
|
||||||
WORKDIR /
|
|
||||||
FROM node:erbium-alpine as builder
|
FROM node:erbium-alpine as builder
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
RUN yarn
|
RUN yarn
|
||||||
|
@ -9,6 +8,6 @@ RUN yarn build
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
|
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
RUN rm -rf /usr/share/nginx/html/*
|
||||||
COPY --from=builder /dist /usr/share/nginx/html
|
COPY --from=builder /build /usr/share/nginx/html
|
||||||
EXPOSE ${EXPOSE} 80
|
EXPOSE ${EXPOSE} 80
|
||||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue