You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
539 B

  1. # Build go-neb
  2. FROM golang:1.8-alpine as builder
  3. COPY . /tmp/go-neb
  4. WORKDIR /tmp/go-neb
  5. RUN apk add --no-cache -t build-deps git gcc musl-dev go \
  6. && go get -u github.com/constabulary/gb/... \
  7. && gb vendor restore \
  8. && gb build -f github.com/matrix-org/go-neb
  9. # Run go-neb
  10. FROM alpine:3.6
  11. ENV BIND_ADDRESS=:4050 DATABASE_TYPE=sqlite3 DATABASE_URL=/data/go-neb.db?_busy_timeout=5000
  12. COPY --from=builder /tmp/go-neb/bin/go-neb /go-neb
  13. RUN apk add --no-cache ca-certificates
  14. VOLUME /data
  15. EXPOSE 4050
  16. ENTRYPOINT ["/go-neb"]