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"