From 167939507653ea32108ff662ef7bf05417a4d2f4 Mon Sep 17 00:00:00 2001 From: ahaenggli Date: Fri, 12 Jan 2024 10:23:24 +0100 Subject: [PATCH] temporary lock node to v18 --- Docker_build_DEV.cmd | 3 ++- Dockerfile | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Docker_build_DEV.cmd b/Docker_build_DEV.cmd index 979bb95..3d9e479 100644 --- a/Docker_build_DEV.cmd +++ b/Docker_build_DEV.cmd @@ -9,5 +9,6 @@ pause REM multiarch-dev echo "Build DEV as multiarch" pause -docker buildx build --no-cache --push --platform linux/amd64,linux/arm64/v8,linux/arm/v7 -t ahaen/azuread-ldap-wrapper:dev . +REM docker buildx build --no-cache --push -t ahaen/azuread-ldap-wrapper:dev --platform linux/amd64,linux/arm64/v8,linux/arm/v7 . +docker buildx build --no-cache --push -t ahaen/azuread-ldap-wrapper:dev --platform linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v8,linux/arm/v7,linux/arm/v6 . pause \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 6c126ed..8ae6274 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts-alpine as build +FROM node:18-alpine as build ENV NODE_ENV="production" @@ -6,9 +6,9 @@ RUN mkdir -p /app && chown -R node:node /app WORKDIR /app COPY . . -RUN npm install --production && npm prune --production +RUN npm install --omit=dev && npm prune --omit=dev -FROM node:lts-alpine as final +FROM node:18-alpine as final RUN apk add --no-cache tini su-exec ENV NODE_ENV "production"