Skip to content

Commit

Permalink
use secure
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Jul 15, 2024
1 parent d8cd876 commit d4de8b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile.secure
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit d4de8b1

Please sign in to comment.