mc: Introduce new Dockerfile for mc. (#1938)

This is to build `mc` at hub.docker.com

Fixes #1917
This commit is contained in:
Harshavardhana
2016-12-31 20:49:05 -08:00
committed by GitHub
parent 9193eef1c9
commit 23a58eb5da
2 changed files with 22 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM golang:1.7-alpine
WORKDIR /go/src/app
COPY . /go/src/app
RUN \
apk add --no-cache git && \
go-wrapper download && \
go-wrapper install -ldflags "$(go run buildscripts/gen-ldflags.go)" && \
rm -rf /go/pkg /go/src && \
apk del git
ENTRYPOINT ["mc"]
+8 -2
View File
@@ -1,5 +1,5 @@
/*
* Minio Client (C) 2014, 2015 Minio, Inc.
* Minio Client (C) 2014, 2015, 2016 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,7 +14,13 @@
* limitations under the License.
*/
package main
/*
* Below main package has canonical imports for 'go get' and 'go build'
* to work with all other clones of github.com/minio/mc repository. For
* more information refer https://golang.org/doc/go1.4#canonicalimports
*/
package main // import "github.com/minio/mc"
import mc "github.com/minio/mc/cmd"