Skip to content

Commit

Permalink
chore: adjust gh workflow and docker file to node v18
Browse files Browse the repository at this point in the history
  • Loading branch information
pmstss committed Aug 27, 2024
1 parent 63a0f8a commit 37a0acc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# BUILD FOR LOCAL DEVELOPMENT
###################

FROM node:14-alpine As build
FROM node:18-alpine AS build

WORKDIR /usr/src/app

Expand All @@ -13,7 +13,6 @@ COPY --chown=node:node package*.json ./
COPY --chown=node:node tsconfig.build.json ./
COPY --chown=node:node tsconfig.json ./
COPY --chown=node:node nest-cli.json ./
COPY --chown=node:node mikro-orm.config.ts ./
COPY --chown=node:node .env ./
COPY --chown=node:node config ./config
COPY --chown=node:node keycloak ./keycloak
Expand All @@ -31,6 +30,7 @@ COPY --chown=node:node client/typings ./client/typings
COPY --chown=node:node client/vcs ./client/vcs
COPY --chown=node:node client/tsconfig.json ./client/tsconfig.json

ENV NODE_OPTIONS=--openssl-legacy-provider
ENV CYPRESS_INSTALL_BINARY=0
RUN npm ci --prefix=client
RUN npm run build --prefix=client
Expand All @@ -43,12 +43,11 @@ USER node
# PRODUCTION
###################

FROM node:14-alpine As production
FROM node:18-alpine AS production

WORKDIR /usr/src/app

COPY --chown=node:node nest-cli.json ./
COPY --chown=node:node mikro-orm.config.ts ./
COPY --chown=node:node .env ./
COPY --chown=node:node config ./config
COPY --chown=node:node keycloak ./keycloak
Expand Down

0 comments on commit 37a0acc

Please sign in to comment.