dockerfile seems to be decent now
This commit is contained in:
parent
54644e29b7
commit
9e9f49f139
@ -5,13 +5,16 @@ COPY . .
|
||||
|
||||
RUN go get -v && make build
|
||||
|
||||
WORKDIR /go
|
||||
RUN tar cvfz go-src.tgz src && du -sh *
|
||||
|
||||
FROM alpine
|
||||
|
||||
COPY --from=builder /go/src/github.com/sneak/merp/merp /bin/merp
|
||||
|
||||
# put the source in there too for safekeeping
|
||||
COPY --from=builder /go/src /usr/local/src/go
|
||||
COPY --from=builder /go/go-src.tgz /usr/local/src/go-src.tgz
|
||||
#COPY --from=builder /go/src /usr/local/src/go
|
||||
|
||||
CMD /bin/merp
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user