update
This commit is contained in:
parent
3a068f57dc
commit
122f123ba6
2 changed files with 14 additions and 2 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -1,5 +1,17 @@
|
|||
FROM node:24.10-alpine3.22 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm ci --prefer-offline --no-audit
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY dist/ /usr/share/nginx/html
|
||||
|
||||
COPY --from=builder /app/dist/ /usr/share/nginx/html/
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue