1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00
awesome-compose/samples/nginx-golang-mysql/backend/Dockerfile
Anca Iordache 8bb4e23e28 add nginx-golang-mysql application sample
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
2020-03-05 17:01:59 +01:00

10 lines
210 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.7
EXPOSE 8000
COPY --from=build /go/src/github.com/org/repo/server /server
CMD ["/server"]