mirror of
https://github.com/ad044/lainTSX.git
synced 2024-10-22 23:19:06 +00:00
Better dockerfile, copy build folder properly
This commit is contained in:
parent
a350a305ad
commit
0fd836e62e
1 changed files with 7 additions and 2 deletions
|
@ -2,13 +2,18 @@ FROM node:15.12.0-alpine AS builder
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY scripts/ ./scripts
|
||||
COPY package-lock.json .
|
||||
COPY package.json .
|
||||
|
||||
RUN npm i
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm i && npm run build
|
||||
RUN npm run build
|
||||
|
||||
RUN ls build/
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=builder /app/build/* /usr/share/nginx/html/
|
||||
COPY --from=builder /app/build/ /usr/share/nginx/html/
|
Loading…
Reference in a new issue