From c11b78c82ab3a1a4b396bf0de96c8a8a4ae20384 Mon Sep 17 00:00:00 2001 From: hahwul Date: Tue, 9 Feb 2021 00:16:50 +0900 Subject: [PATCH] Added Dockerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8dbf7f5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# BUILDER +FROM golang:latest AS builder +WORKDIR /go/src/app +COPY . . + +RUN go get -d -v ./... +RUN go build -o gee + +# RUNNING +FROM debian:buster +RUN mkdir /app +WORKDIR /app/ +COPY --from=builder /go/src/app/gee /app/gitls +CMD ["/app/gee"]