From 5a0c534174436ba81cdeca0dd5ccf350042047c5 Mon Sep 17 00:00:00 2001 From: idan Date: Thu, 3 Oct 2024 12:25:55 +0300 Subject: [PATCH] . --- .github/workflows/callable.tests.yml | 5 ++--- .github/workflows/push.yml | 2 +- Dockerfile | 7 ++++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/callable.tests.yml b/.github/workflows/callable.tests.yml index a87720b..d34036a 100644 --- a/.github/workflows/callable.tests.yml +++ b/.github/workflows/callable.tests.yml @@ -21,10 +21,9 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: 'npm' - + - name: Install Node.js dependencies - run: npm ci + run: npm i - name: Run tests run: npm test \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ce42461..523d7b8 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -2,7 +2,7 @@ name: Push CI on: push: - branches: ['master'] + branches: ['master', '11-cicd-fix'] env: REGISTRY: ghcr.io diff --git a/Dockerfile b/Dockerfile index 3b34299..46afd35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,11 @@ ARG NODE_VERSION=18.0.0 FROM node:${NODE_VERSION}-alpine +RUN apk add --no-cache --update curl ca-certificates openssl git tar bash sqlite fontconfig \ + && adduser --disabled-password --home /home/container container + +LABEL org.opencontainers.image.authors="idankob@gmail.com" + ENV NODE_ENV production WORKDIR /home/container @@ -9,7 +14,7 @@ COPY package*.json ./ RUN npm install RUN npm ci --omit=dev -USER node +USER container COPY . .