-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36b6e20
commit 91fa27b
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
FROM node:18-alpine | ||
|
||
# Create a non-root user | ||
RUN addgroup -S myuser && adduser -S myuser -G myuser | ||
|
||
RUN apk add --no-cache bash>5.1.16 git>2.42.0 | ||
|
||
# Installing latest released npm package | ||
RUN npm install --ignore-scripts -g @asyncapi/cli | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
# Make the bash file executable | ||
RUN chmod +x /entrypoint.sh | ||
|
||
# Switch to the non-root user | ||
USER myuser | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |