We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80fdd5a commit 9364adcCopy full SHA for 9364adc
1 file changed
Dockerfile
@@ -1,13 +1,12 @@
1
-FROM golang:1.11-alpine as build
+FROM golang:1.11-alpine as builder
2
3
# Install tools required for project
4
# Run `docker build --no-cache .` to update dependencies
5
RUN apk add --no-cache build-base git
6
WORKDIR /arc
7
8
# List project dependencies with go.mod and go.sum
9
-COPY go.mod .
10
-COPY go.sum .
+COPY go.mod go.sum ./
11
12
# Install library dependencies
13
RUN go mod download
@@ -17,5 +16,12 @@ RUN go mod download
17
16
COPY . .
18
RUN make
19
+# Final stage: Create the running container
20
+FROM alpine:3.10.1 AS final
21
+
22
+# Import the compiled executable from the first stage.
23
+COPY --from=builder /arc /arc
24
+WORKDIR /arc
25
26
EXPOSE 8000
27
CMD ["build/arc", "--log", "stdout", "--plugins"]
0 commit comments