File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- FROM caddy:2.5.1-builder -alpine as builder
1+ FROM node:17 -alpine as builder
22
33# make the 'app' folder the current working directory
44WORKDIR /app
55
66# copy both 'package.json' and 'package-lock.json' (if available)
77COPY package*.json ./
88
9+ # install project dependencies
10+ RUN npm ci --legacy-peer-deps
11+
912# copy project files and folders to the current working directory (i.e. 'app' folder)
1013COPY . .
1114
1215ARG VUE_APP_VERSION_ID=production
1316ARG VUE_APP_BUILD_ID=local
1417
1518# build app for production with minification
16- RUN xcaddy build
19+ RUN npm run build --legacy-peer-deps
1720
1821FROM caddy:2.5.1-alpine
1922
2023# copy build artifacts to webserver root
2124RUN rm -rf /usr/share/caddy
22- COPY --from=builder /app/caddy /usr/share/caddy
25+ COPY --from=builder /app/dist /usr/share/caddy
2326
2427# copy webserver configuration
2528COPY ./Caddyfile /etc/caddy/Caddyfile
You can’t perform that action at this time.
0 commit comments