Skip to content

Instantly share code, notes, and snippets.

@flouthoc
Created February 25, 2019 12:35
Show Gist options
  • Save flouthoc/1aa3b7e7f7a76115a507e526c3a3cf9b to your computer and use it in GitHub Desktop.
Save flouthoc/1aa3b7e7f7a76115a507e526c3a3cf9b to your computer and use it in GitHub Desktop.
Test
FROM golang:alpine AS builder
RUN mkdir /server
ADD /server /server
WORKDIR /server
RUN go build -o server .
RUN chmod 777 server
FROM alpine
COPY --from=builder server server
RUN chmod 777 server
CMD ["./server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment