Skip to content

Commit

Permalink
Remove all packages from the runtime stage
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Oct 14, 2024
1 parent e05df78 commit e9f0479
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@ RUN --mount=type=bind,source=tower-batch-control,target=tower-batch-control \
# from the `release` stage.
FROM debian:bookworm-slim AS runtime

RUN apt-get update && apt-get install -y --no-install-recommends gosu

RUN rm -rf /var/lib/apt/lists/* /tmp/*

COPY --from=release /usr/local/bin/zebrad /usr/local/bin/
COPY --from=release /usr/local/bin/entrypoint.sh /usr/local/bin/

Expand Down
4 changes: 0 additions & 4 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,6 @@ monitoring)
:
;;
*)
if command -v gosu >/dev/null 2>&1; then
exec gosu "$USER" "$@"
else
exec "$@"
fi
;;
esac

0 comments on commit e9f0479

Please sign in to comment.