File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.24-alpine as builder
2
- RUN apk update && apk upgrade && apk add --no-cache bash git openssh
3
- WORKDIR /app
4
- COPY go.mod go.sum ./
5
- RUN go mod download
1
+ FROM golang:1.24-alpine AS builder
2
+
3
+ WORKDIR /root/go/
6
4
COPY . .
7
- RUN go build -o main .
5
+ RUN apk --no-cache add make git gcc libtool musl-dev ca-certificates dumb-init curl
6
+ RUN go get .
7
+ RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o divar-alert .
8
+
9
+
10
+ FROM alpine:3.17
11
+ LABEL org.opencontainers.image.source="https://github.com/MrMohebi/stremio-ir-providers"
12
+
13
+ WORKDIR /root/app
8
14
15
+ COPY --from=builder --chmod=777 /root/go/divar-alert ./divar-alert
9
16
10
- FROM python:alpine3.16
11
- RUN apk update && apk add --no-cache ffmpeg
12
- COPY --from=builder /app/main /
13
- CMD ["./main" ]
17
+ ENTRYPOINT ["/root/app/divar-alert" ]
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ services:
6
6
environment :
7
7
- TELEGRAM_BOT_TOKEN=
8
8
- TELEGRAM_API_URL=https://tapi.bale.ai
9
- - DB_PATH=. /db.badger
9
+ - DB_PATH=/root/app /db.badger
10
10
volumes :
11
- - ./db.badger:/db.badger
11
+ - ./db.badger:/root/app/ db.badger
You can’t perform that action at this time.
0 commit comments