Skip to content

Commit c27d983

Browse files
authored
Merge pull request benjojo#16 from visibilityspots/master
Removed GOARCH parameter to be able to build arm images
2 parents 13d3a39 + 99f5833 commit c27d983

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WORKDIR $GOPATH/src/mypackage/myapp/
1111
#get dependancies
1212
RUN go get -d -v
1313
#build the binary
14-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags="-w -s" -o /go/bin/alertmanager-discord
14+
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags="-w -s" -o /go/bin/alertmanager-discord
1515

1616

1717
# STEP 2 build a small image
@@ -26,4 +26,3 @@ ENV LISTEN_ADDRESS=0.0.0.0:9094
2626
EXPOSE 9094
2727
USER appuser
2828
ENTRYPOINT ["/go/bin/alertmanager-discord"]
29-

0 commit comments

Comments
 (0)