Created
December 15, 2019 04:48
dockerfile for CICDWorkshop
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.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