feat: Update dockerfile alpine image
@@ -8,20 +8,20 @@ ENV BUILD_TARGET=$BUILD_ARCH-unknown-linux-$BUILD_LIBC
WORKDIR /work
# Build only dependencies to speed up subsequent builds
-ADD Cargo.toml Cargo.lock build.rs ./
+COPY Cargo.toml Cargo.lock build.rs ./
RUN mkdir -p src \
&& echo "fn main() {}" > src/main.rs \
&& cargo build --release --target=$BUILD_TARGET --locked
# Add all sources and rebuild the actual sentry-cli
-ADD src src/
+COPY src src/
RUN touch src/main.rs && cargo build --target=$BUILD_TARGET --release --features managed
# Copy the compiled binary to a target-independent location so it can be picked up later
RUN cp target/$BUILD_TARGET/release/sentry-cli /usr/local/bin/sentry-cli
-FROM alpine:3.12
+FROM alpine:3.14
WORKDIR /work
RUN apk add --no-cache ca-certificates
COPY ./docker-entrypoint.sh /
