Skip to content

Commit

Permalink
chore: correct nodejs version for rettiwt-api (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
async3619 authored Oct 31, 2024
1 parent 18e6374 commit 962f542
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install and Build
uses: actions/setup-node@v3
with:
node-version: "22.x"
node-version: "20.11.1"

- name: Install yarn
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install and Build
uses: actions/setup-node@v3
with:
node-version: "22.x"
node-version: "20.11.1"

- name: Install yarn
run: |
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22-alpine as builder
FROM node:20.18-alpine as builder

RUN apk add --update --no-cache curl git openssh openssl

Expand All @@ -18,7 +18,7 @@ ENV NODE_ENV ${NODE_ENV}

RUN ["yarn", "build"]

FROM node:22-alpine as prod-deps
FROM node:20.18-alpine as prod-deps

USER node
WORKDIR /home/node
Expand All @@ -35,7 +35,7 @@ ENV NODE_ENV ${NODE_ENV}

CMD [ "node", "dist/src/index" ]

FROM node:22-alpine as production
FROM node:20.18-alpine as production

USER node
WORKDIR /home/node
Expand Down

0 comments on commit 962f542

Please sign in to comment.