chore: refactor dockerfile-slim

This commit is contained in:
Jun Kurihara 2025-05-07 20:01:03 +09:00
commit 669e2bf00b
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23

View file

@ -5,7 +5,7 @@ LABEL maintainer="Jun Kurihara"
ARG TARGETARCH
ARG CARGO_FEATURES
ENV CARGO_FEATURES ${CARGO_FEATURES}
ENV CARGO_FEATURES=${CARGO_FEATURES}
RUN if [ $TARGETARCH = "amd64" ]; then \
echo "x86_64" > /arch; \
@ -22,7 +22,7 @@ WORKDIR /tmp
COPY . /tmp/
ENV RUSTFLAGS "-C link-arg=-s"
ENV RUSTFLAGS="-C link-arg=-s"
RUN echo "Building rpxy from source" && \
cargo update && \
@ -34,7 +34,7 @@ RUN echo "Building rpxy from source" && \
FROM --platform=$TARGETPLATFORM alpine:latest AS runner
LABEL maintainer="Jun Kurihara"
ENV RUNTIME_DEPS logrotate ca-certificates su-exec
ENV RUNTIME_DEPS="logrotate ca-certificates su-exec"
RUN apk add --no-cache ${RUNTIME_DEPS} && \
update-ca-certificates && \