Skip to content

Commit

Permalink
chore: fix for frontend build
Browse files Browse the repository at this point in the history
The fix in the last commit did not work.
  • Loading branch information
lucky-lusa authored and jekutzsche committed Jun 8, 2022
1 parent 24685de commit 1f556c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions iris-client-fe/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
FROM caddy:2.5.1-builder-alpine as builder
FROM node:17-alpine as builder

# make the 'app' folder the current working directory
WORKDIR /app

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

# install project dependencies
RUN npm ci --legacy-peer-deps

# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .

ARG VUE_APP_VERSION_ID=production
ARG VUE_APP_BUILD_ID=local

# build app for production with minification
RUN xcaddy build
RUN npm run build --legacy-peer-deps

FROM caddy:2.5.1-alpine

# copy build artifacts to webserver root
RUN rm -rf /usr/share/caddy
COPY --from=builder /app/caddy /usr/share/caddy
COPY --from=builder /app/dist /usr/share/caddy

# copy webserver configuration
COPY ./Caddyfile /etc/caddy/Caddyfile
Expand Down

0 comments on commit 1f556c6

Please sign in to comment.