Skip to content

Commit ebed34a

Browse files
chore: update Dockerfile to include net-tools and bash
- Add net-tools and bash to the Docker image for enhanced functionality - Copy bash from the builder stage as a temporary fix
1 parent 9b04ecb commit ebed34a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ 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+
911
FROM gcr.io/distroless/static-debian12:latest AS runner
1012

1113
COPY --from=builder /app/rabbit.go /usr/local/bin/rabbit.go
1214
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
1317

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

0 commit comments

Comments
 (0)