Skip to content

Commit 24685de

Browse files
committed
chore: fixes a build failure with node:16-alpine as builder
https://github.com/iris-connect/iris-client/actions/runs/2460108944
1 parent ae25da8 commit 24685de

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

iris-client-fe/Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
1-
FROM node:16-alpine as builder
1+
FROM caddy:2.5.1-builder-alpine as builder
22

33
# make the 'app' folder the current working directory
44
WORKDIR /app
55

66
# copy both 'package.json' and 'package-lock.json' (if available)
77
COPY package*.json ./
88

9-
# install project dependencies
10-
RUN npm ci
11-
129
# copy project files and folders to the current working directory (i.e. 'app' folder)
1310
COPY . .
1411

1512
ARG VUE_APP_VERSION_ID=production
1613
ARG VUE_APP_BUILD_ID=local
1714

1815
# build app for production with minification
19-
RUN npm run build
16+
RUN xcaddy build
2017

2118
FROM caddy:2.5.1-alpine
2219

2320
# copy build artifacts to webserver root
2421
RUN rm -rf /usr/share/caddy
25-
COPY --from=builder /app/dist /usr/share/caddy
22+
COPY --from=builder /app/caddy /usr/share/caddy
2623

2724
# copy webserver configuration
2825
COPY ./Caddyfile /etc/caddy/Caddyfile

0 commit comments

Comments
 (0)