Skip to content

Commit

Permalink
build(docker): 增加nginx版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaojob committed Jul 7, 2024
1 parent eba2e8e commit 96cad24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ WORKDIR /app
COPY . .

RUN npm install -g pnpm --registry=https://registry.npmmirror.com
RUN pnpm config set registry https://registry.npmmirror.com
RUN pnpm install

RUN ["pnpm", "build"]

FROM nginx:stable-alpine
FROM nginx:1.25.3
COPY --from=0 /app/dist /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/conf.d/

0 comments on commit 96cad24

Please sign in to comment.