Skip to content

Commit 59d8f12

Browse files
authored
Update Dockerfile
Builder image changed to golang:1.15-alpine as requested (this image is more slim vs debian one, but additional packages required)
1 parent d9e191a commit 59d8f12

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
FROM golang:1.14 AS builder
1+
FROM golang:1.15-alpine AS builder
22

33
# Set necessary environmet variables needed for our image
44
ENV CGO_ENABLED=1 \
5-
GOOS=linux \
6-
GOARCH=arm64
5+
GOOS=linux
76

87
# Move to working directory /build
98
WORKDIR /build
109

1110
# Copy the code into the container
1211
COPY . .
1312

13+
# Additional packages required
14+
RUN apk -U add musl-dev gcc
15+
1416
# Build the application
1517
RUN go build -v -a -tags netgo -ldflags '-w -extldflags "-static"' .
1618

0 commit comments

Comments
 (0)