mirror of
https://github.com/tiennm99/store-scraper-bot.git
synced 2026-10-15 06:16:15 +00:00
Clear and rewrite
Retire the Go port; history continues from the JavaScript implementation (store-scraper-bot).
This commit is contained in:
1 parent
824279e1fe
commit
ca1a409610
45 files changed
-2983
No files matched your search
-31
@@ -1,31 +0,0 @@
|
||||
# Build stage
|
||||
FROM golang:1.21-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install build dependencies
|
||||
RUN apk add --no-cache git
|
||||
|
||||
# Copy go mod files
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o bot ./cmd/bot
|
||||
|
||||
# Final stage
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk --no-cache add ca-certificates tzdata
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
# Copy the binary from builder
|
||||
COPY --from=builder /app/bot .
|
||||
|
||||
# Expose no ports (bot uses long polling)
|
||||
|
||||
CMD ["./bot"]
|
||||
Reference in new issue
Block a user