Skip to content

Commit

Permalink
Merge pull request #464 from nacos-group/develop
Browse files Browse the repository at this point in the history
Fix Dockerfile style issue
  • Loading branch information
paderlol authored Aug 2, 2024
2 parents 4361622 + e91be98 commit a691243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build the manager binary

FROM golang:1.16 AS builder
ARG TARGETARCH


WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -20,7 +20,7 @@ COPY pkg/ pkg/
ADD https://raw.githubusercontent.com/alibaba/nacos/develop/distribution/conf/mysql-schema.sql config/sql/nacos-mysql.sql

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on go build -a -v -o manager main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -v -o manager main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
Expand Down

0 comments on commit a691243

Please sign in to comment.