From df7415753b95235db5dc5fdd77f10209d0c3675d Mon Sep 17 00:00:00 2001 From: MITSUKA Atsushi Date: Tue, 12 Jun 2018 15:10:15 +0900 Subject: [PATCH] Improve: build and deoloy. --- Dockerfile.build | 6 ++++++ Dockerfile.release | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 Dockerfile.build create mode 100644 Dockerfile.release diff --git a/Dockerfile.build b/Dockerfile.build new file mode 100644 index 0000000..c57a407 --- /dev/null +++ b/Dockerfile.build @@ -0,0 +1,6 @@ +FROM golang:1.10 +WORKDIR /src/github.com/voyagegroup/popuko +RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh +ENV GOPATH=/ +ENV CGO_ENABLED=0 +CMD ["make", "bootstrap", "build"] diff --git a/Dockerfile.release b/Dockerfile.release new file mode 100644 index 0000000..bdce370 --- /dev/null +++ b/Dockerfile.release @@ -0,0 +1,7 @@ +FROM scratch + +COPY popuko /popuko.bin +COPY ["LICENSE.MIT", "README.md", "/"] + +EXPOSE 3000 +CMD ["/popuko.bin", "--config-base-dir", "/config"]