Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup(dockerfile): update alpine from 3.20 to 3.21 #7

Merged
merged 3 commits into from
Dec 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM alpine:3.20
FROM alpine:3.21

RUN addgroup -S lintergroup && adduser -S linteruser -G lintergroup \
&& mkdir /linter_workdir && chown -R linteruser:lintergroup /linter_workdir

# NOTE: setting this will allow to catch error if pipe command below fails.
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]

# NOTE: update to latest secure libcrypto3 version.
RUN apk add --no-cache curl=8.11.0-r2 go=1.22.9-r0 libcrypto3=3.3.2-r1 \
RUN apk add --no-cache curl=8.11.0-r2 go=1.23.4-r0 \
&& curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /bin v1.62.0 \
&& apk del curl

Expand All @@ -27,4 +26,4 @@ ENTRYPOINT ["/bin/golangci-lint", "run", "--enable-all", "--config", "/.golangci
"--disable", "depguard", \
"--disable", "testpackage", \
"--disable", "gci", \
"--disable", "gofumpt"]
"--disable", "gofumpt"]
Loading