We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9e191a commit 59d8f12Copy full SHA for 59d8f12
1 file changed
Dockerfile
@@ -1,16 +1,18 @@
1
-FROM golang:1.14 AS builder
+FROM golang:1.15-alpine AS builder
2
3
# Set necessary environmet variables needed for our image
4
ENV CGO_ENABLED=1 \
5
- GOOS=linux \
6
- GOARCH=arm64
+ GOOS=linux
7
8
# Move to working directory /build
9
WORKDIR /build
10
11
# Copy the code into the container
12
COPY . .
13
+# Additional packages required
14
+RUN apk -U add musl-dev gcc
15
+
16
# Build the application
17
RUN go build -v -a -tags netgo -ldflags '-w -extldflags "-static"' .
18
0 commit comments