Skip to content

Commit

Permalink
Fix docker linter warnings. (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
MirahImage authored Aug 30, 2024
1 parent 3f7e98a commit 28bc42b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM --platform=$BUILDPLATFORM golang:1.22 as builder
FROM --platform=$BUILDPLATFORM golang:1.22 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -19,14 +19,14 @@ COPY rabbitmqclient/ rabbitmqclient/
# Build
ARG TARGETOS
ARG TARGETARCH
ENV GOOS $TARGETOS
ENV GOARCH $TARGETARCH
ENV GOOS=$TARGETOS
ENV GOARCH=$TARGETARCH

# Build
RUN CGO_ENABLED=0 GO111MODULE=on go build -a -tags timetzdata -o manager main.go

# ---------------------------------------
FROM alpine:latest as etc-builder
FROM alpine:latest AS etc-builder

RUN echo "messaging-topology-operator:x:1001:" > /etc/group && \
echo "messaging-topology-operator:x:1001:1001::/home/messaging-topology-operator:/usr/sbin/nologin" > /etc/passwd
Expand Down

0 comments on commit 28bc42b

Please sign in to comment.