Update Dockerfile
This commit is contained in:
parent
c79ad00705
commit
20e725444d
11
Dockerfile
11
Dockerfile
@ -3,15 +3,10 @@ WORKDIR /app/
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v
|
||||
|
||||
FROM alpine as prep
|
||||
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
|
||||
|
||||
FROM python:alpine
|
||||
RUN apk update
|
||||
RUN apk upgrade
|
||||
RUN apk add --no-cache ffmpeg
|
||||
COPY --from=prep yt-dlp /usr/local/bin
|
||||
RUN chmod 755 /usr/local/bin/yt-dlp
|
||||
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp && \
|
||||
chmod 755 /usr/local/bin/yt-dlp
|
||||
RUN apk update && apk upgrade && apk add --no-cache ffmpeg
|
||||
COPY --from=builder /app/yt-dlp-telegram-bot /app/yt-dlp-telegram-bot
|
||||
|
||||
ENTRYPOINT ["/app/yt-dlp-telegram-bot"]
|
||||
|
||||
3
docker-build.sh
Executable file
3
docker-build.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -t nonoo/yt-dlp-telegram-bot:latest .
|
||||
Loading…
Reference in New Issue
Block a user