Skip to content

Commit f9ce5c4

Browse files
refactor: update Dockerfile to use debian:12-alpine and streamline dependencies
- Change base image from gcr.io/distroless/static-debian12 to debian:12-alpine for improved compatibility - Remove temporary bash copy and retain only net-tools installation for a cleaner Dockerfile
1 parent ebed34a commit f9ce5c4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

server/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ COPY . .
66

77
RUN go build -ldflags="-s -w" -o rabbit.go main.go
88

9-
RUN apk add --no-cache net-tools bash
10-
11-
FROM gcr.io/distroless/static-debian12:latest AS runner
9+
FROM debian:12-alpine AS runner
1210

1311
COPY --from=builder /app/rabbit.go /usr/local/bin/rabbit.go
1412
COPY --from=builder /app/internal/database/migrations.sql /usr/local/bin/internal/database/migrations.sql
15-
# temporary fix for bash
16-
COPY --from=builder /bin/bash /bin/bash
13+
RUN apk add --no-cache net-tools
1714

1815
# 9999 is the tunnel server port
1916
# 3422 is the API port (never expose this port to the internet)

0 commit comments

Comments
 (0)