Skip to content

Commit 747fc3e

Browse files
Amzaniasyncapi-bot
andauthored
fix: docker permissions (#1464)
Co-authored-by: asyncapi-bot <[email protected]>
1 parent ac6792b commit 747fc3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:20-alpine
22

33
# Set ARG to explicit value to build chosen version. Default is "latest"
4-
ARG ASYNCAPI_CLI_VERSION=
4+
ARG ASYNCAPI_CLI_VERSION=
55

66
# Create a non-root user
77
RUN addgroup -S myuser && adduser -S myuser -G myuser
@@ -22,6 +22,9 @@ RUN apk --update add git chromium && \
2222
# Installing latest released npm package
2323
RUN npm install --ignore-scripts -g @asyncapi/cli@"$ASYNCAPI_CLI_VERSION"
2424

25+
RUN chown -R myuser:myuser /usr/local/lib/node_modules && \
26+
chown -R myuser:myuser /usr/local/bin
27+
2528
# Switch to the non-root user
2629
USER myuser
2730

0 commit comments

Comments
 (0)