Skip to content

Commit

Permalink
fix: fixed dockerFile image build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Jul 31, 2024
1 parent d621d3d commit b7a0803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:18-alpine AS builder
FROM node:18.10.0 AS builder

WORKDIR /frontend
COPY package*.json /frontend/
RUN npm ci
COPY . /frontend/
RUN npx ng build

FROM nginx:1.21-alpine
FROM nginx:1.22.1-alpine
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /frontend/dist/ /usr/share/nginx/html/
COPY scripts/nginx.conf /etc/nginx/nginx.conf
Expand Down

0 comments on commit b7a0803

Please sign in to comment.