From 1f8cdcc7701d1104a28540e867d2caf546eeaf3a Mon Sep 17 00:00:00 2001 From: Marco Argentieri <3596602+tiero@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:56:31 +0200 Subject: [PATCH] fix: upgrade alpine:3.18 for zlib CVE-2022-37434 (#276) --- Dockerfile | 5 +++-- README.md | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f34c2ca..28a6f0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,9 @@ RUN cd server && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -l RUN cd client && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-X 'main.Version=${VERSION}'" -o ../bin/ark . # Second image, running the arkd executable -FROM alpine:3.12 +FROM alpine:3.18 + +RUN apk update && apk upgrade WORKDIR /app @@ -31,4 +33,3 @@ VOLUME /app/data VOLUME /app/wallet-data ENTRYPOINT [ "arkd" ] - diff --git a/README.md b/README.md index ddae7bd..0197ef5 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ This will compile the `arkd` and `ark` binaries for your current architecture. F 4. Install dependencies: ```sh - go mod download + go work sync ``` 5. Build the project: @@ -97,7 +97,7 @@ Note: You need to run `make build` in both the `server` and `client` directories ## Support -If you encounter any issues or have questions, please file an issue on our [GitHub Issues](https://github.com/ark-network/ark/issues) page. +If you encounter any issues or have questions, please file an issue on our [GitHub Issues](https://github.com/ark-network/ark/issues) page. ## Security