diff --git a/Dockerfile b/Dockerfile index 1e20d6aa50e..decb7a8175a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ -FROM node:16-alpine +FROM node:20-alpine -ARG ASYNCAPI_CLI_VERSION=0.59.1 +# 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 @@ -14,6 +15,7 @@ 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. RUN apk --update add git chromium && \ + apk add --no-cache --virtual .gyp python3 make g++ && \ rm -rf /var/lib/apt/lists/* && \ rm /var/cache/apk/*