From 7c009e7d8dd53736280e41f1d4c214834ad5cb23 Mon Sep 17 00:00:00 2001 From: Victor Afanassieff Date: Mon, 30 Aug 2021 20:15:29 +0200 Subject: [PATCH] Added dockerfile --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a49c9fe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM golang:1.16.0-alpine AS builder + +WORKDIR /opt/buid + +COPY ./*.go ./*.html ./go.mod ./go.sum ./ +COPY static ./static + +RUN apk add gcc musl-dev linux-headers +RUN go get +RUN go build + +FROM alpine:3.14 + +ENV PORT=17422 +ENV DOMAIN=satdress.com +ENV SECRET=askdbasjdhvakjvsdjasd +ENV SITE_OWNER_URL=https://t.me/fiatjaf +ENV SITE_OWNER_NAME=@fiatjaf +ENV SITE_NAME=Satdress + +COPY --from=builder /opt/buid/satdress /usr/local/bin/ + +EXPOSE 17422 + +CMD ["satdress"]