siemonster :: orborus - optimize rebuilding speed as step of installing GO-packages will be cached

This commit is contained in:
Harduino
2020-08-01 21:18:29 +03:00
parent 1c87838d19
commit f7dacd5792
+2 -2
View File
@@ -2,10 +2,10 @@ from golang as builder
RUN mkdir /app
WORKDIR /app
COPY orborus.go /app/orborus.go
RUN go get github.com/docker/docker/api/types github.com/docker/docker/api/types/container github.com/docker/docker/client
COPY orborus.go /app/orborus.go
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o orborus .
FROM alpine:3.12