Skip to content

Commit

Permalink
Use nodejs alpine docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Sep 19, 2023
1 parent db42a7e commit a0c6c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vue-frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:20 AS ui-build
FROM node:20-alpine AS ui-build
WORKDIR /app
COPY . ./
RUN yarn install --frozen-lockfile && yarn build

FROM node:20 AS server-build
FROM node:20-alpine AS server-build
WORKDIR /root/
COPY --from=ui-build /app/dist ./dist
COPY --from=ui-build /app/node_modules ./node_modules
Expand Down

0 comments on commit a0c6c0e

Please sign in to comment.