Add Dockerfile and Makefile for 'camlistore/camlistored' Docker image.

Change-Id: Ied7055689f1946ce0e6a857b4e6ddd5f8dca79b9
This commit is contained in:
Brad Fitzpatrick 2014-08-15 22:20:57 -07:00
parent 38cceb30aa
commit 38b97e1b9a
3 changed files with 11 additions and 0 deletions

1
misc/docker/camlistored/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
camlistored

View File

@ -0,0 +1,5 @@
FROM scratch
MAINTAINER Brad Fitzpatrick <brad@danga.com>
ADD camlistored /camlistored
EXPOSE 80 443
ENTRYPOINT ["/camlistored"]

View File

@ -0,0 +1,5 @@
docker: Dockerfile camlistored
docker build -t camlistore/camlistored .
camlistored:
CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' -o camlistored camlistore.org/server/camlistored