Created
January 25, 2022 15:46
-
-
Save ahndmal/42ae626580725b898877197bf7b7b1d1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# syntax=docker/dockerfile:1 | |
FROM golang:1.16-alpine | |
WORKDIR /app | |
COPY go.mod ./ | |
COPY go.sum ./ | |
RUN go mod download | |
COPY *.go ./ | |
RUN go build -o /docker-gs-ping | |
EXPOSE 8080 | |
CMD [ "/docker-gs-ping" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment