diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index d71af19..4cf77e2 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -37,6 +37,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + - name: Install ORAS id: install_oras uses: oras-project/setup-oras@main diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2bd5a0a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22 diff --git a/Dockerfile b/Dockerfile index 30ff7bc..c62e8c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM node:16.20.2 as foundation +ARG NODE_VERSION=22 +FROM node:${NODE_VERSION} as foundation LABEL maintainer="Burak Ince " @@ -9,7 +10,7 @@ COPY package.json package-lock.json /usr/app/ RUN npm config set loglevel error RUN npm install -FROM node:16.20.2-slim +FROM node:${NODE_VERSION}-slim WORKDIR /usr/app