Skip to content

Commit

Permalink
Merge pull request #1711 from rabbitmq/fix-docker-warnings
Browse files Browse the repository at this point in the history
Fix docker syntax warnings from github actions.
  • Loading branch information
MirahImage authored Aug 26, 2024
2 parents 7e37873 + 7b795a4 commit 5f4b7cf
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

Expand All @@ -18,12 +18,12 @@ COPY pkg/ pkg/
# Build
ARG TARGETOS
ARG TARGETARCH
ENV GOOS $TARGETOS
ENV GOARCH $TARGETARCH
ENV GOOS=$TARGETOS
ENV GOARCH=$TARGETARCH
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 "rabbitmq-cluster-operator:x:1000:" > /etc/group && \
echo "rabbitmq-cluster-operator:x:1000:1000::/home/rabbitmq-cluster-operator:/usr/sbin/nologin" > /etc/passwd
Expand Down

0 comments on commit 5f4b7cf

Please sign in to comment.