Navigation Menu

Skip to content

Commit

Permalink
Build docker image from current source not from master
Browse files Browse the repository at this point in the history
  • Loading branch information
msoap committed Oct 28, 2017
1 parent 98860b3 commit 966640a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
@@ -1,10 +1,15 @@
# docker build -t msoap/shell2http .

# build image
FROM golang:alpine as go_builder

RUN apk add --no-cache git

ADD . $GOPATH/src/github.com/msoap/shell2http
WORKDIR $GOPATH/src/github.com/msoap/shell2http
ENV CGO_ENABLED=0
RUN go get -a -v -ldflags="-w -s" github.com/msoap/shell2http
RUN go get -t -v ./...
RUN go install -a -v -ldflags="-w -s" ./...

# final image
FROM alpine
Expand Down

0 comments on commit 966640a

Please sign in to comment.