Bump base image version of Go environment to 1.11.4 (#1026)

This commit is contained in:
Ta-Ching Chen
2019-03-19 18:29:19 +08:00
committed by GitHub
parent c496d35d12
commit 3a8b9ccd80
5 changed files with 39 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
ARG GO_VERSION=1.11.4
FROM golang:${GO_VERSION} AS builder
ENV GOPATH /usr
ENV APP ${GOPATH}/src/github.com/fission/fission/environments/go
ADD context ${APP}/context
ADD server.go ${APP}
WORKDIR ${APP}
RUN go get
RUN go build -a -o /server server.go
FROM ubuntu:18.04
WORKDIR /
COPY --from=builder /server /
RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/server"]
EXPOSE 8888