We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a914b6 commit 47bd02eCopy full SHA for 47bd02e
1 file changed
app/Dockerfile
@@ -120,13 +120,14 @@ LABEL "org.opencontainers.image.description"="Simple Node.js express application
120
LABEL "org.opencontainers.image.source"=https://github.com/${GITHUB_ACCOUNT}/${GITHUB_REPOSITORY}
121
LABEL "org.nodejs.version"=${NODE_VERSION}
122
123
-COPY --from=builder /opt/ngsi-tutorial /opt/ngsi-tutorial
+COPY --from=builder --chown=nonroot:nonroot /opt/ngsi-tutorial /opt/ngsi-tutorial
124
WORKDIR /opt/ngsi-tutorial
125
126
USER nobody
127
ENV NODE_ENV=production
128
# Ports used by application
129
EXPOSE ${WEB_APP_PORT:-3000}
130
+USER nonroot
131
CMD ["./bin/www"]
132
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s \
133
CMD ["/nodejs/bin/node", "./bin/healthcheck"]
0 commit comments