Skip to content

Commit

Permalink
chore: change dockerfile nginx version
Browse files Browse the repository at this point in the history
  • Loading branch information
lgz5689 committed Jan 15, 2024
1 parent 225908d commit 02bf6d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: Deploy and Publish

on:
push:
Expand All @@ -11,10 +11,6 @@ permissions:
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:20.11.0 as builder
FROM node:20.11.0-alpine as builder

WORKDIR /app

ADD . .

RUN rm -rf node_modules
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm run build
RUN rm -rf node_modules && \
npm install -g pnpm && \
pnpm install && \
pnpm run build

FROM nginx
FROM nginx:alpine

WORKDIR /usr/share/nginx/html/

Expand Down

0 comments on commit 02bf6d7

Please sign in to comment.