Skip to content

Commit

Permalink
fix: docker build failure (#59)
Browse files Browse the repository at this point in the history
* fix: docker build failure

Signed-off-by: iutx <[email protected]>

* upgrade nodejs and pnpm version

Signed-off-by: iutx <[email protected]>

---------

Signed-off-by: iutx <[email protected]>
  • Loading branch information
iutx authored May 24, 2024
1 parent 8f2f1e1 commit af0c997
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
version: 9

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Stage 1: build stage
FROM node:16-alpine as build-stage
FROM node:22-alpine as build-stage
# make the 'app' folder the current working directory
WORKDIR /app
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . ./
# config node options
ENV NODE_OPTIONS=--max_old_space_size=8192
# config pnpm, install dependencies and build
RUN npm install pnpm -g && \
RUN npm install pnpm@9.x -g && \
pnpm install && \
pnpm build
RUN echo "build successful 🎉 🎉 🎉"
Expand Down

0 comments on commit af0c997

Please sign in to comment.