Skip to content

Commit

Permalink
fix: Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Mar 23, 2023
1 parent 7782d00 commit 33daa09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build the XMRig binary
FROM alpine:3.15 as builder
FROM alpine:3.16 as builder

ARG XMRIG_VERSION=v6.19.0
ARG XMRIG_URL="https://github.com/xmrig/xmrig.git"
Expand Down Expand Up @@ -31,7 +31,7 @@ RUN git clone --single-branch --depth 1 --branch=$XMRIG_VERSION $XMRIG_URL \
&& make -j$(nproc)

# Stage 2: Copy XMRig binary into a smaller image
FROM alpine:3.15
FROM alpine:3.16

RUN apk add --no-cache \
bash \
Expand Down

0 comments on commit 33daa09

Please sign in to comment.