File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM node:16 -alpine as builder
1
+ FROM caddy:2.5.1-builder -alpine as builder
2
2
3
3
# make the 'app' folder the current working directory
4
4
WORKDIR /app
5
5
6
6
# copy both 'package.json' and 'package-lock.json' (if available)
7
7
COPY package*.json ./
8
8
9
- # install project dependencies
10
- RUN npm ci
11
-
12
9
# copy project files and folders to the current working directory (i.e. 'app' folder)
13
10
COPY . .
14
11
15
12
ARG VUE_APP_VERSION_ID=production
16
13
ARG VUE_APP_BUILD_ID=local
17
14
18
15
# build app for production with minification
19
- RUN npm run build
16
+ RUN xcaddy build
20
17
21
18
FROM caddy:2.5.1-alpine
22
19
23
20
# copy build artifacts to webserver root
24
21
RUN rm -rf /usr/share/caddy
25
- COPY --from=builder /app/dist /usr/share/caddy
22
+ COPY --from=builder /app/caddy /usr/share/caddy
26
23
27
24
# copy webserver configuration
28
25
COPY ./Caddyfile /etc/caddy/Caddyfile
You can’t perform that action at this time.
0 commit comments