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
24
24
# Switch to root to create user and set up permissions
25
25
USER root
26
26
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/*
29
32
30
33
# Create non-root user
31
34
RUN groupadd -r asyncapi && useradd -r -g asyncapi asyncapi
32
35
33
- # Copy built files from builder stage
36
+ # Copy built files from builder stage with correct ownership
34
37
WORKDIR /app
35
- COPY --from=build /app /app
38
+ COPY --from=build --chown=asyncapi:asyncapi /app /app
36
39
37
40
# Create symlink and set permissions
38
41
RUN 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
41
43
42
44
# Switch to non-root user for runtime
43
45
USER asyncapi
Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ pre-commit:
3
3
commands :
4
4
lint :
5
5
run : npm run lint
6
+ exclude : ' package-lock.json'
6
7
test :
7
8
run : npm run test
9
+ exclude : ' package-lock.json'
8
10
9
11
commit-msg :
10
12
parallel : true
You can’t perform that action at this time.
0 commit comments