Skip to content

Commit f2251af

Browse files
committed
Update Dockerfile
fix docker build
1 parent 0c3e20c commit f2251af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Stage 1: Build the Vue.js application
2-
FROM node:14 as build-stage
2+
FROM node:22 AS build-stage
33
WORKDIR /app
44
COPY package*.json ./
55
RUN npm install
66
COPY . .
77
RUN npm run build
88

99
# Stage 2: Serve the application with Nginx
10-
FROM nginx:1.27 as production-stage
10+
FROM nginx:1.27 AS production-stage
1111

1212
COPY --from=build-stage /app/dist /usr/share/nginx/html
1313
COPY --from=build-stage /app/dist/assets/app-config.js /usr/share/nginx/html-template/app-config.template.js

0 commit comments

Comments
 (0)