Created
August 8, 2021 16:00
-
-
Save gertjana/8e8c02be716d770880bcd4701cc68c2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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