about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-15 22:37:35 +0100
committerEmile <hanemile@protonmail.com>2020-03-15 22:37:35 +0100
commit585a7c31b8d46d4c28bf5ef2b21c0290ee0d1b51 (patch)
tree79e824302337e33e9473d4b40f129738af09e40e
parent835b8b26246b5823956321d969be19b7794b15b0 (diff)
basic dockerfile
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a4a1efa
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM golang:1.14 as build-env
+
+WORKDIR /go/src/app
+ADD . /go/src/app
+
+ENV PATH="$GOPATH/bin:$PATH"
+ENV GOBIN="$GOPATH/bin"
+RUN go env
+
+RUN go get -d -v ./...
+RUN go build -o /go/bin/faila ./src
+
+FROM gcr.io/distroless/base
+COPY --from=build-env /go/bin/faila /
+COPY --from=build-env /go/src/app/hosted/ /hosted/
+#COPY --from=build-env /go/src/app/config.yml /config.yml
+CMD ["/faila"]