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.

21 lines
603 B

  1. FROM alpine:3.6
  2. ENV BIND_ADDRESS=:4050 DATABASE_TYPE=sqlite3 DATABASE_URL=/data/go-neb.db?_busy_timeout=5000
  3. COPY . /tmp/go-neb
  4. WORKDIR /tmp/go-neb
  5. ENV GOPATH=/tmp/go-neb/vendor/src:/tmp/go-neb/vendor:/tmp/go-neb
  6. RUN apk add --no-cache -t build-deps git gcc musl-dev go \
  7. && go get -u github.com/constabulary/gb/... \
  8. && export PATH="/tmp/go-neb/vendor/src/bin:${PATH}" \
  9. && gb vendor restore \
  10. && gb build -f github.com/matrix-org/go-neb \
  11. && mv bin/go-neb /go-neb \
  12. && cd / \
  13. && rm -rf /tmp/* \
  14. && apk del build-deps
  15. VOLUME /data
  16. EXPOSE 4050
  17. ENTRYPOINT ["/go-neb"]