Skip to content

Commit

Permalink
fix: Adjust dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Dec 28, 2024
1 parent 98547b8 commit 32ec930
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM alpine:3.21@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f
# Create non-root user and set up permissions in a single layer
RUN adduser -k /dev/null -u 10001 -D gorge \
&& chgrp 0 /home/gorge \
&& chmod -R g+rwX /home/gorge \
# Add additional security hardening
&& chmod 755 /gorge
&& chmod -R g+rwX /home/gorge

# Copy application binary with explicit permissions
COPY --chmod=755 gorge /
Expand Down

0 comments on commit 32ec930

Please sign in to comment.