From 38b97e1b9a413a8160404ac78f69afb714db824b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 15 Aug 2014 22:20:57 -0700 Subject: [PATCH] Add Dockerfile and Makefile for 'camlistore/camlistored' Docker image. Change-Id: Ied7055689f1946ce0e6a857b4e6ddd5f8dca79b9 --- misc/docker/camlistored/.gitignore | 1 + misc/docker/camlistored/Dockerfile | 5 +++++ misc/docker/camlistored/Makefile | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 misc/docker/camlistored/.gitignore create mode 100644 misc/docker/camlistored/Dockerfile create mode 100644 misc/docker/camlistored/Makefile diff --git a/misc/docker/camlistored/.gitignore b/misc/docker/camlistored/.gitignore new file mode 100644 index 000000000..488219308 --- /dev/null +++ b/misc/docker/camlistored/.gitignore @@ -0,0 +1 @@ +camlistored diff --git a/misc/docker/camlistored/Dockerfile b/misc/docker/camlistored/Dockerfile new file mode 100644 index 000000000..2e68ddc8a --- /dev/null +++ b/misc/docker/camlistored/Dockerfile @@ -0,0 +1,5 @@ +FROM scratch +MAINTAINER Brad Fitzpatrick +ADD camlistored /camlistored +EXPOSE 80 443 +ENTRYPOINT ["/camlistored"] diff --git a/misc/docker/camlistored/Makefile b/misc/docker/camlistored/Makefile new file mode 100644 index 000000000..bd0e7b0f4 --- /dev/null +++ b/misc/docker/camlistored/Makefile @@ -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