Skip to content

Commit d0141a8

Browse files
committed
fix: update dockerfile and lock file and not include lock file in pre commit hooks
1 parent 18f34d2 commit d0141a8

File tree

3 files changed

+3902
-149
lines changed

3 files changed

+3902
-149
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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
2525
USER 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
3134
RUN 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
3437
WORKDIR /app
35-
COPY --from=build /app /app
38+
COPY --from=build --chown=asyncapi:asyncapi /app /app
3639

3740
# Create symlink and set permissions
3841
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
4143

4244
# Switch to non-root user for runtime
4345
USER asyncapi

lefthook.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

911
commit-msg:
1012
parallel: true

0 commit comments

Comments
 (0)