siemonster :: use Alpine image for backend/orborus as Scratch doesn't work correctly on Minikube

This commit is contained in:
Harduino
2020-08-01 21:15:40 +03:00
parent 960d4ff9a9
commit 1c87838d19
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o webapp .
FROM alpine:latest as certs
RUN apk --update add ca-certificates
from scratch
FROM alpine:3.12
COPY --from=builder /app/ /app
COPY --from=builder /app_sdk/ /app_sdk
+1 -1
View File
@@ -8,7 +8,7 @@ RUN go get github.com/docker/docker/api/types github.com/docker/docker/api/types
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o orborus .
from scratch
FROM alpine:3.12
COPY --from=builder /app/ /
CMD ["./orborus"]