File tree Expand file tree Collapse file tree 3 files changed +3902
-149
lines changed Expand file tree Collapse file tree 3 files changed +3902
-149
lines changed Original file line number Diff line number Diff line change @@ -24,20 +24,22 @@ FROM ghcr.io/puppeteer/puppeteer:20.8.0
2424# Switch to root to create user and set up permissions
2525USER root
2626
27- # Install git (needed by AsyncAPI CLI)
28- RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
27+ # Install git
28+ RUN rm -f /etc/apt/sources.list.d/google*.list && \
29+ apt-get update && \
30+ apt-get install -y git && \
31+ rm -rf /var/lib/apt/lists/*
2932
3033# Create non-root user
3134RUN groupadd -r asyncapi && useradd -r -g asyncapi asyncapi
3235
33- # Copy built files from builder stage
36+ # Copy built files from builder stage with correct ownership
3437WORKDIR /app
35- COPY --from=build /app /app
38+ COPY --from=build --chown=asyncapi:asyncapi /app /app
3639
3740# Create symlink and set permissions
3841RUN ln -s /app/bin/run_bin /usr/local/bin/asyncapi && \
39- chmod +x /usr/local/bin/asyncapi && \
40- chown -R asyncapi:asyncapi /app
42+ chmod +x /usr/local/bin/asyncapi
4143
4244# Switch to non-root user for runtime
4345USER asyncapi
Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ pre-commit:
33 commands :
44 lint :
55 run : npm run lint
6+ exclude : ' package-lock.json'
67 test :
78 run : npm run test
9+ exclude : ' package-lock.json'
810
911commit-msg :
1012 parallel : true
You can’t perform that action at this time.
0 commit comments