about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-04-30 20:05:27 +0200
committerEmile <hanemile@protonmail.com>2020-04-30 20:05:27 +0200
commit25bbfaa9dc7a56e7df27bfe8e42a772286ffff74 (patch)
treea353712a13afc324b270926075d5ff689189f52d /Dockerfile
parent7e7ac716629206a75ce308c775ab2c6eeeaaaa52 (diff)
super simple minimal setup
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a66e4fc
--- /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/faila2 ./...
+
+FROM gcr.io/distroless/base
+COPY --from=build-env /go/bin/faila2 /
+
+ENTRYPOINT ["/faila2"]
\ No newline at end of file