You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
294 B
16 lines
294 B
FROM golang:1.9-alpine as go
|
|
|
|
WORKDIR /go/src/text-server
|
|
COPY . .
|
|
ENV CGO_ENABLED=0
|
|
ENV GOOS=linux
|
|
ENV GOARCH=amd64
|
|
RUN go build -ldflags '-extldflags "-static"' -o text-server
|
|
|
|
|
|
FROM scratch
|
|
|
|
EXPOSE 8080
|
|
COPY --from=go /go/src/text-server/text-server text-server
|
|
|
|
ENTRYPOINT ["/text-server"]
|