Fix go env panic “plugin: not implemented” (#784)

This commit is contained in:
Ta-Ching Chen
2018-07-06 12:24:46 +08:00
committed by GitHub
parent 61569d1c38
commit 2504408803
3 changed files with 70 additions and 7 deletions
+3 -3
View File
@@ -10,12 +10,12 @@ ADD server.go ${APP}
WORKDIR ${APP}
RUN go get
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o /server server.go
RUN go build -a -o /server server.go
FROM alpine:3.7
FROM ubuntu:18.04
WORKDIR /
COPY --from=builder /server /
RUN apk -U add ca-certificates
RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/server"]
EXPOSE 8888