Skip to content

Commit

Permalink
fix: sonarcloud warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal committed Dec 19, 2023
1 parent 36b6e20 commit 91fa27b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
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"]

0 comments on commit 91fa27b

Please sign in to comment.