Skip to content
Snippets Groups Projects
Unverified Commit 7241b0d5 authored by Cellar Admin's avatar Cellar Admin 💬 Committed by GitHub
Browse files

Update Dockerfile

parent 8e15500c
No related branches found
No related tags found
No related merge requests found
FROM golang:latest FROM golang:latest
WORKDIR /go/src/github.com/mvazquezc/reverse-words/ WORKDIR /go/src/github.com/rcdelacruz/reverse-words/
COPY main.go . COPY main.go .
RUN go get github.com/gorilla/mux && go get github.com/prometheus/client_golang/prometheus/promhttp RUN go get github.com/gorilla/mux && go get github.com/prometheus/client_golang/prometheus/promhttp
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
FROM scratch FROM scratch
COPY --from=0 /go/src/github.com/mvazquezc/reverse-words/main . COPY --from=0 /go/src/github.com/rcdelacruz/reverse-words/main .
EXPOSE 8080 EXPOSE 8080
CMD ["/main"] CMD ["/main"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment