create static nginx docker build
This commit is contained in:
parent
c74a15c40c
commit
1ac514293b
1 changed files with 10 additions and 4 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -1,10 +1,16 @@
|
|||
FROM node:24-alpine
|
||||
FROM node:24-alpine AS node-builder
|
||||
WORKDIR /app
|
||||
|
||||
# RUN npm install gulp
|
||||
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
CMD ["node", "index.mjs"]
|
||||
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
# COPY --from=node-builder /app/server /usr/share/nginx/html
|
||||
COPY --from=node-builder /app/dist /usr/share/nginx/html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue