We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac6792b commit 747fc3eCopy full SHA for 747fc3e
Dockerfile
@@ -1,7 +1,7 @@
1
FROM node:20-alpine
2
3
# Set ARG to explicit value to build chosen version. Default is "latest"
4
-ARG ASYNCAPI_CLI_VERSION=
+ARG ASYNCAPI_CLI_VERSION=
5
6
# Create a non-root user
7
RUN addgroup -S myuser && adduser -S myuser -G myuser
@@ -22,6 +22,9 @@ RUN apk --update add git chromium && \
22
# Installing latest released npm package
23
RUN npm install --ignore-scripts -g @asyncapi/cli@"$ASYNCAPI_CLI_VERSION"
24
25
+RUN chown -R myuser:myuser /usr/local/lib/node_modules && \
26
+chown -R myuser:myuser /usr/local/bin
27
+
28
# Switch to the non-root user
29
USER myuser
30
0 commit comments