Skip to content

Instantly share code, notes, and snippets.

@ahndmal
Created January 25, 2022 15:46
Show Gist options
  • Save ahndmal/42ae626580725b898877197bf7b7b1d1 to your computer and use it in GitHub Desktop.
Save ahndmal/42ae626580725b898877197bf7b7b1d1 to your computer and use it in GitHub Desktop.
# 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