Skip to content

Commit

Permalink
ci(Dockerfile): add sh and wget (#182)
Browse files Browse the repository at this point in the history
Because

- we want fine-grained control for dependency status with healthcheck at
docker compose up

This commit

- add `sh` and `wget` for distroless image
  • Loading branch information
pinglin authored Feb 15, 2024
1 parent 1f7ec74 commit ed5055d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ ARG SERVICE_NAME

WORKDIR /${SERVICE_NAME}

COPY --from=busybox:stable-musl --chown=nonroot:nonroot /bin/sh /bin/sh
COPY --from=busybox:stable-musl --chown=nonroot:nonroot /bin/wget /bin/wget

COPY --from=build --chown=nonroot:nonroot /src/config ./config
COPY --from=build --chown=nonroot:nonroot /src/release-please ./release-please
COPY --from=build --chown=nonroot:nonroot /src/pkg/db/migration ./pkg/db/migration
Expand Down

0 comments on commit ed5055d

Please sign in to comment.