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