awesome-compose/nginx-golang-postgres/backend/Dockerfile
inductor 361b0f5bb9 Update Alpine to 3.12 from 3.7
Signed-off-by: inductor <kohei.ota@hpe.com>
2020-07-21 16:50:54 +09:00

11 lines
211 B
Docker
Executable File

FROM golang:1.13-alpine AS build
WORKDIR /go/src/github.com/org/repo
COPY . .
RUN go build -o server .
FROM alpine:3.12
EXPOSE 8000
COPY --from=build /go/src/github.com/org/repo/server /server
CMD ["/server"]