Skip to content

Commit 0d1c3ab

Browse files
authored
fix: update busybox installation in Dockerfile for improved security (#555)
1 parent 25f20f8 commit 0d1c3ab

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docker/serverless.dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ FROM golang:1.25-alpine AS builder
33
ARG VERSION=unknown
44

55
# Install ca-certificates and timezone data for final stage
6-
RUN apk add --no-cache ca-certificates tzdata
6+
RUN apk add --no-cache ca-certificates tzdata && \
7+
apk add --upgrade --force-refresh busybox
78

89
# Set working directory
910
WORKDIR /app
@@ -27,7 +28,8 @@ RUN CGO_ENABLED=0 go build \
2728
FROM alpine:3.20
2829

2930
# Install ca-certificates for SSL/TLS
30-
RUN apk add --no-cache ca-certificates tzdata
31+
RUN apk add --no-cache ca-certificates tzdata && \
32+
apk add --upgrade --force-refresh busybox
3133

3234
# Create non-root user with specific UID/GID for consistency
3335
RUN addgroup -g 1000 appgroup && \

0 commit comments

Comments
 (0)