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.

19 lines
527 B

  1. FROM resin/aarch64-alpine:3.5
  2. ENV GOPATH /go
  3. ENV PATH $PATH:$GOPATH/bin
  4. ENV CGO_ENABLED 0
  5. WORKDIR /go/src/github.com/minio/
  6. RUN \
  7. apk add --no-cache ca-certificates && \
  8. apk add --no-cache --virtual .build-deps git go musl-dev && \
  9. go get -v -d github.com/minio/minio && \
  10. cd /go/src/github.com/minio/minio && \
  11. go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)" && \
  12. rm -rf /go/pkg /go/src /usr/local/go && apk del .build-deps
  13. EXPOSE 9000
  14. ENTRYPOINT ["minio"]
  15. VOLUME ["/export"]