Skip to content
Open
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
2 changes: 1 addition & 1 deletion disaster-recovery/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Build the manager binary
FROM --platform=$BUILDPLATFORM golang:1.24-alpine3.22 as builder

Check warning on line 2 in disaster-recovery/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-consul-disaster-recovery Image Build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 2 in disaster-recovery/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-consul-disaster-recovery Image Build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
ARG BUILDPLATFORM
ARG TARGETOS
ARG TARGETARCH

ARG GH_ACCESS_TOKEN

Check warning on line 7 in disaster-recovery/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-consul-disaster-recovery Image Build

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "GH_ACCESS_TOKEN") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/

Check warning on line 7 in disaster-recovery/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-consul-disaster-recovery Image Build

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "GH_ACCESS_TOKEN") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/

ENV GOSUMDB=off

Expand Down Expand Up @@ -33,10 +33,10 @@

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM alpine:3.22
FROM alpine:3.23

WORKDIR /
COPY --from=builder --chown=${USER_UID} /workspace/manager .

Check warning on line 39 in disaster-recovery/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-consul-disaster-recovery Image Build

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$USER_UID' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 39 in disaster-recovery/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-consul-disaster-recovery Image Build

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$USER_UID' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

# Install misc tools
RUN set -x \
Expand Down
Loading