Skip to content

Instantly share code, notes, and snippets.

@shashank404error
Last active October 27, 2020 08:48
Show Gist options
  • Save shashank404error/9806fb4d6cb0f89256e60d402310c8f9 to your computer and use it in GitHub Desktop.
Save shashank404error/9806fb4d6cb0f89256e60d402310c8f9 to your computer and use it in GitHub Desktop.

Revisions

  1. shashank404error revised this gist Oct 27, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    FROM golang:latest
    LABEL maintainer="Shashank P. Sharma <[email protected]>"
    LABEL maintainer="your name <[email protected]>"
    WORKDIR /app
    COPY go.mod ./
    RUN go mod download
  2. shashank404error created this gist Oct 27, 2020.
    9 changes: 9 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    FROM golang:latest
    LABEL maintainer="Shashank P. Sharma <[email protected]>"
    WORKDIR /app
    COPY go.mod ./
    RUN go mod download
    COPY . .
    RUN go build -o demo
    EXPOSE 80
    CMD ["./demo"]