Skip to content

Instantly share code, notes, and snippets.

@alevz257
Created December 15, 2019 04:48
Show Gist options
  • Save alevz257/22d4c2b7ed284e37b76af5a00f0c3c8a to your computer and use it in GitHub Desktop.
Save alevz257/22d4c2b7ed284e37b76af5a00f0c3c8a to your computer and use it in GitHub Desktop.
dockerfile for CICDWorkshop
FROM golang:1.11.1 as builder
RUN mkdir -p /go/src/test
WORKDIR /go/src/test
RUN useradd -u 10001 app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
EXPOSE 8080
CMD ["/go/src/test/main"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment