mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 06:36:14 +00:00
Add curl to base images (#4510)
Having a tool like curl or wget can help us to run healthchecks on docker-based deployments more easily. This commit adds curl to the list of deb packages that are installed as external dependencies
This commit is contained in:
parent
97e2dbdfd7
commit
bdabc5e827
|
@ -75,18 +75,19 @@ RUN --mount=type=cache,target=./target,uid=10001,gid=10001 set -ex; \
|
||||||
mv "./target/$CARGO_BUILD_TARGET/$RUST_RELEASE_MODE/lemmy_server" /home/lemmy/lemmy_server; \
|
mv "./target/$CARGO_BUILD_TARGET/$RUST_RELEASE_MODE/lemmy_server" /home/lemmy/lemmy_server; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# amd64 base runner
|
# amd64 base runner
|
||||||
FROM ${AMD_RUNNER_IMAGE} AS runner-linux-amd64
|
FROM ${AMD_RUNNER_IMAGE} AS runner-linux-amd64
|
||||||
|
|
||||||
# Federation needs CA certificates
|
# Add system packages that are needed: federation needs CA certificates, curl can be used for healthchecks
|
||||||
RUN apt update && apt install -y libssl-dev libpq-dev ca-certificates
|
RUN apt update && apt install -y libssl-dev libpq-dev ca-certificates curl
|
||||||
|
|
||||||
COPY --from=build-amd64 --chmod=0755 /lemmy/lemmy_server /usr/local/bin
|
COPY --from=build-amd64 --chmod=0755 /lemmy/lemmy_server /usr/local/bin
|
||||||
|
|
||||||
# arm base runner
|
# arm base runner
|
||||||
FROM ${ARM_RUNNER_IMAGE} AS runner-linux-arm64
|
FROM ${ARM_RUNNER_IMAGE} AS runner-linux-arm64
|
||||||
|
|
||||||
RUN apt update && apt install -y ca-certificates libssl-dev libpq-dev
|
RUN apt update && apt install -y libssl-dev libpq-dev ca-certificates curl
|
||||||
|
|
||||||
COPY --from=build-arm64 --chmod=0755 /home/lemmy/lemmy_server /usr/local/bin
|
COPY --from=build-arm64 --chmod=0755 /home/lemmy/lemmy_server /usr/local/bin
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue