Skip to content

Commit ee2a8fb

Browse files
authored
Merge pull request #3 from Igor097/dev
removing label and adding the -ldflags flag with the -s and -w options
2 parents 1bb6bb1 + a843d25 commit ee2a8fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ ARG ALPINE_VERSION=latest
33

44
FROM golang:${GOLANG_VERSION} as builder
55

6-
LABEL maintainer="Igor097"
7-
86
WORKDIR /app
97

108
COPY go.mod go.sum /
119
RUN go mod download
1210

1311
COPY . .
1412

15-
RUN CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -o gserver main.go
13+
RUN CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o gserver main.go
1614

1715
FROM alpine:${ALPINE_VERSION}
1816

0 commit comments

Comments
 (0)