Skip to content

Commit

Permalink
copy frontend from git
Browse files Browse the repository at this point in the history
  • Loading branch information
Divkix committed May 30, 2023
1 parent d37cc47 commit 5380f1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**
!utils
!frontend
!*.go
!go.mod
!go.sum
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 5380f1f

Please sign in to comment.