Skip to content

Commit

Permalink
bring back explicit version selection in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
eelcofolkertsma authored Mar 27, 2024
1 parent 8835147 commit 50f2b38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:20-alpine

# Use below ARG in manual build of image to set version. Github workflow overrides in publication to Dockerhub
ARG ASYNCAPI_CLI_VERSION=0.0.0
# Set ARG to explicit value to build chosen version. Default is "latest"
ARG ASYNCAPI_CLI_VERSION=

# Create a non-root user
RUN addgroup -S myuser && adduser -S myuser -G myuser
Expand All @@ -20,7 +20,7 @@ RUN apk --update add git chromium && \
rm /var/cache/apk/*

# Installing latest released npm package
RUN npm install --ignore-scripts -g @asyncapi/cli
RUN npm install --ignore-scripts -g @asyncapi/cli@"$ASYNCAPI_CLI_VERSION"

# Switch to the non-root user
USER myuser
Expand Down

0 comments on commit 50f2b38

Please sign in to comment.