diff --git a/.github/workflows/flowzone.yml b/.github/workflows/flowzone.yml index 38c6114..06d3e03 100644 --- a/.github/workflows/flowzone.yml +++ b/.github/workflows/flowzone.yml @@ -47,3 +47,5 @@ jobs: { "environment": ["test"] } + docker_images: + ghcr.io/balena-io-experimental/deployable diff --git a/Dockerfile b/Dockerfile index bb1a3aa..4b68e0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,12 @@ -FROM node:20-slim +FROM node:22-slim + WORKDIR /usr/src/app + COPY package.json package-lock.json ./ -RUN npm ci --production -RUN npm cache clean --force -ENV NODE_ENV="production" -COPY . . +RUN HUSKY=0 npm ci --unsafe-perm --production && npm cache clean --force + +COPY . /usr/src/app + +RUN npx tsc --noEmit --project ./tsconfig.build.json + CMD [ "npm", "start" ]