Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
try to fix the maintainability issue
  • Loading branch information
thebedigupta authored Oct 5, 2024
1 parent 5194e88 commit 5160528
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/generator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
# Since 0.14.0 release of html-template chromium is needed for pdf generation.
# More custom packages for specific template should not be added to this dockerfile. Instead, we should come up with some extensibility solution.
# The --no-cache prevents from caching of the package index which saves space by not storing the APK cache files.
# Install dependencies and AsyncAPI Generator in a single RUN command
RUN apk --no-cache add git chromium && \
rm -rf /var/cache/apk/*

# Installing latest released npm package
RUN npm install -g @asyncapi/generator@$ASYNCAPI_GENERATOR_VERSION
rm -rf /var/cache/apk/* && \
npm install -g @asyncapi/generator@$ASYNCAPI_GENERATOR_VERSION

ENTRYPOINT [ "ag" ]

0 comments on commit 5160528

Please sign in to comment.