Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.git/ | ||
client/ | ||
node_modules/ | ||
gin-bin |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# build core | ||
FROM golang:1.10-alpine as core-builder | ||
RUN apk --no-cache --update add nodejs-npm make gcc g++ musl-dev openssl-dev | ||
COPY vendor /go/src/github.com/berty/berty/vendor | ||
COPY core /go/src/github.com/berty/berty/core | ||
WORKDIR /go/src/github.com/berty/berty | ||
RUN cd core && make _ci_prepare # touching generated files | ||
RUN cd core && make install | ||
|
||
# minimal runtime | ||
FROM alpine | ||
RUN apk --no-cache --update add openssl | ||
COPY --from=core-builder /go/bin/berty /bin/berty | ||
ENTRYPOINT ["/bin/berty"] | ||
CMD ["daemon"] | ||
EXPOSE 1337 |