Skip to content

Instantly share code, notes, and snippets.

@gertjana
Created August 8, 2021 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gertjana/8e8c02be716d770880bcd4701cc68c2a to your computer and use it in GitHub Desktop.
Save gertjana/8e8c02be716d770880bcd4701cc68c2a to your computer and use it in GitHub Desktop.
FROM golang:1.16
RUN mkdir -p /app
COPY cmd/ /app
COPY go.* /app
WORKDIR /app
RUN CGO_ENABLED=0 GOOS=linux go build -o service gitlab.com/gertjana/tiny/main.go
EXPOSE 8000
CMD ["/app/service"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment