Skip to content

Commit

Permalink
Strip more files from docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
ripply committed Nov 2, 2021
1 parent 362e716 commit 78e17a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
/playground
/metamask
/https
/logs
/.vscode
/.idea
janusLogs.txt
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ api.rest
truffle-pruned-output.json
truffle-result-output.json
output.json
testing/testing

.parcel-cache
playground/pet-shop-tutorial/dist
Expand Down
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ COPY ./ $GOPATH/src/github.com/qtumproject/janus

RUN go build \
-ldflags \
"-X 'github.com/qtumproject/janus/pkg/params.GitSha=`git rev-parse HEAD``git diff -s --exit-code || echo \"-local\"`'" \
-o $GOPATH/bin $GOPATH/src/github.com/qtumproject/janus/...

RUN rm -fr $GOPATH/src/github.com/qtumproject/janus/testing && \
rm -fr $GOPATH/src/github.com/qtumproject/janus/build && \
"-X 'github.com/qtumproject/janus/pkg/params.GitSha=`git rev-parse HEAD`'" \
-o $GOPATH/bin $GOPATH/src/github.com/qtumproject/janus/... && \
rm -fr $GOPATH/src/github.com/qtumproject/janus/.git

ENV QTUM_RPC=http://qtum:testpasswd@localhost:3889
Expand Down

0 comments on commit 78e17a6

Please sign in to comment.