From 5380f1fa49ccade8eb93b900274cc4cec65e31cf Mon Sep 17 00:00:00 2001 From: Divanshu Chauhan Date: Tue, 30 May 2023 14:47:27 +0530 Subject: [PATCH] copy frontend from git --- .dockerignore | 6 ++++++ Dockerfile | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..4914844 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +** +!utils +!frontend +!*.go +!go.mod +!go.sum diff --git a/Dockerfile b/Dockerfile index 2ecb5b1..a2a3c15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,10 @@ WORKDIR /app COPY . . RUN CGO_ENABLED=0 GOOS=`go env GOHOSTOS` GOARCH=`go env GOHOSTARCH` go build -o out/srink -ldflags="-w -s" . RUN upx --brute out/srink +RUN git clone https://github.com/srinkco/website # Run Stage: Run bot using the bot binary copied from build stage FROM alpine:3.18 COPY --from=builder /app/out/srink /app/srink +COPY --from=builder /app/website /app/frontend CMD ["/app/srink"]