chore: refactor dockerfile-slim
This commit is contained in:
parent
5044237688
commit
669e2bf00b
1 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ LABEL maintainer="Jun Kurihara"
|
||||||
|
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ARG CARGO_FEATURES
|
ARG CARGO_FEATURES
|
||||||
ENV CARGO_FEATURES ${CARGO_FEATURES}
|
ENV CARGO_FEATURES=${CARGO_FEATURES}
|
||||||
|
|
||||||
RUN if [ $TARGETARCH = "amd64" ]; then \
|
RUN if [ $TARGETARCH = "amd64" ]; then \
|
||||||
echo "x86_64" > /arch; \
|
echo "x86_64" > /arch; \
|
||||||
|
|
@ -22,7 +22,7 @@ WORKDIR /tmp
|
||||||
|
|
||||||
COPY . /tmp/
|
COPY . /tmp/
|
||||||
|
|
||||||
ENV RUSTFLAGS "-C link-arg=-s"
|
ENV RUSTFLAGS="-C link-arg=-s"
|
||||||
|
|
||||||
RUN echo "Building rpxy from source" && \
|
RUN echo "Building rpxy from source" && \
|
||||||
cargo update && \
|
cargo update && \
|
||||||
|
|
@ -34,7 +34,7 @@ RUN echo "Building rpxy from source" && \
|
||||||
FROM --platform=$TARGETPLATFORM alpine:latest AS runner
|
FROM --platform=$TARGETPLATFORM alpine:latest AS runner
|
||||||
LABEL maintainer="Jun Kurihara"
|
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} && \
|
RUN apk add --no-cache ${RUNTIME_DEPS} && \
|
||||||
update-ca-certificates && \
|
update-ca-certificates && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue