Skip to content

Commit

Permalink
ref(docker): Move sentry-cli into the deps stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer committed May 23, 2022
1 parent 319012d commit 91d2c8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ARG DOCKER_ARCH=amd64
### Deps stage ###
##################

FROM getsentry/sentry-cli:1 AS sentry-cli
FROM $DOCKER_ARCH/centos:7 AS relay-deps

ARG DOCKER_ARCH
Expand All @@ -30,19 +31,19 @@ ENV RUSTUP_HOME=/usr/local/rustup \

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal

COPY --from=sentry-cli /bin/sentry-cli /bin/sentry-cli

WORKDIR /work

#####################
### Builder stage ###
#####################

FROM getsentry/sentry-cli:1 AS sentry-cli
FROM relay-deps AS relay-builder

ARG RELAY_FEATURES=ssl,processing,crash-handler
ENV RELAY_FEATURES=${RELAY_FEATURES}

COPY --from=sentry-cli /bin/sentry-cli /bin/sentry-cli
COPY . .

# Build with the modern compiler toolchain enabled
Expand Down

0 comments on commit 91d2c8e

Please sign in to comment.