Skip to content

Commit

Permalink
fix: docker/Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Jul 1, 2024
1 parent f6dbe20 commit 9cd6ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.19 as build-env
FROM alpine:3 as build-env

WORKDIR /workspace
COPY . ./
Expand All @@ -7,7 +7,7 @@ RUN cargo test --release
# https://users.rust-lang.org/t/sigsegv-with-program-linked-against-openssl-in-an-alpine-container/52172
RUN RUSTFLAGS="-C target-feature=-crt-static" cargo build --release

FROM alpine:3.19 as runtime
FROM alpine:3 as runtime

ARG VCS_REF
ARG BUILD_DATE
Expand Down

0 comments on commit 9cd6ea4

Please sign in to comment.