From 9cca09d8bbd2bd56ce6001054e903f63be4caa4b Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Fri, 15 Nov 2019 11:35:34 -0800 Subject: [PATCH] Fix broken alpine dependency --- Dockerfile | 11 ++++------- Makefile | 2 +- docker-compose.yml | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index d4452a2..ba4b6a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ FROM alpine:3.10 -RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ - apk update && \ - apk --no-cache add \ - ca-certificates \ - youtube-dl==2019.11.05-r1 \ - ffmpeg WORKDIR /app/ +RUN wget -O youtube-dl https://github.com/ytdl-org/youtube-dl/releases/download/2019.11.05/youtube-dl && \ + chmod +x youtube-dl && \ + apk --no-cache add ca-certificates python ffmpeg COPY podsync /app/podsync -ENTRYPOINT ["/app/podsync"] +CMD ["/app/podsync"] diff --git a/Makefile b/Makefile index a338dbb..4b24208 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ build: # .PHONY: docker docker: - docker build -t podsync . + docker build -t mxpv/podsync:latest . # # Pull GolangCI-Lint dependency diff --git a/docker-compose.yml b/docker-compose.yml index e8d1878..d4ee5e9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '2.2' services: podsync: container_name: podsync - image: mxpv/podsync + image: mxpv/podsync:latest restart: always ports: - 80:80