Skip to content
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
6 changes: 6 additions & 0 deletions docker-zookeeper/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM golang:1.24-alpine3.22 as builder

Check warning on line 1 in docker-zookeeper/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-docker-zookeeper

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 1 in docker-zookeeper/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-docker-zookeeper

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
Expand Down Expand Up @@ -33,7 +33,7 @@
ZOOKEEPER_BACKUP_PORT=8081

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

Check warning on line 36 in docker-zookeeper/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-docker-zookeeper

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 36 in docker-zookeeper/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / qubership-docker-zookeeper

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 Expand Up @@ -135,6 +135,12 @@
# Upgrade all tools to avoid vulnerabilities
RUN set -x && apk upgrade --no-cache --available

# Upgrade tools from edge to avoid vulnerabilities
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories \
&& echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& apk add --update --upgrade --no-cache \
pcre2

USER 1000:0
WORKDIR ${ZOOKEEPER_HOME}

Expand Down
Loading