Skip to content

Commit eef57e6

Browse files
lucky-lusajekutzsche
authored andcommitted
chore: fix for frontend build
The fix in the last commit with caddy-builder did not work.
1 parent 24685de commit eef57e6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

iris-client-fe/Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
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
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 --legacy-peer-deps
11+
912
# copy project files and folders to the current working directory (i.e. 'app' folder)
1013
COPY . .
1114

1215
ARG VUE_APP_VERSION_ID=production
1316
ARG 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

1821
FROM caddy:2.5.1-alpine
1922

2023
# copy build artifacts to webserver root
2124
RUN 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
2528
COPY ./Caddyfile /etc/caddy/Caddyfile

0 commit comments

Comments
 (0)