From d4de8b1e37d1a7321ff16a6a933d7ae26b0933e4 Mon Sep 17 00:00:00 2001 From: jackkav Date: Mon, 15 Jul 2024 17:46:57 +0200 Subject: [PATCH] use secure --- Dockerfile.secure | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile.secure diff --git a/Dockerfile.secure b/Dockerfile.secure new file mode 100644 index 0000000..19961ed --- /dev/null +++ b/Dockerfile.secure @@ -0,0 +1,11 @@ +FROM 910202568813.dkr.ecr.us-east-2.amazonaws.com/konnect-base-nodejs-dev:20 + +RUN apt-get update && apt-get install -y --no-install-recommends dumb-init +ENV NODE_ENV production +WORKDIR /usr/src/app +COPY --chown=node:node . . +RUN npm ci --only=production +USER node +ENV MOCKBIN_REDIS "redis://redis:6379" +EXPOSE 8080 +CMD ["dumb-init", "node", "server.js"] \ No newline at end of file