Skip to content

Commit

Permalink
feat: add Dockerfile support (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jul 27, 2018
1 parent 67209aa commit 807b466
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
@@ -0,0 +1,4 @@
.git/
client/
node_modules/
gin-bin
16 changes: 16 additions & 0 deletions Dockerfile
@@ -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

0 comments on commit 807b466

Please sign in to comment.