From 34c708d5f44b6d9fc5ae8252d053b556c54a6ba2 Mon Sep 17 00:00:00 2001 From: jtagcat Date: Sun, 2 Jan 2022 15:33:11 +0200 Subject: [PATCH] readd `WORKDIR /app` `config.toml` uses relative path, from the current directory, `$PWD` by default is `/`. commit f337f6c8b16acad6f6a86648f72061e098652040 removed `WORKDIR /app`, and `/config.toml` was used instead of `/app/config.toml`. The change was breaking, unexpected and undocumented. As users already mount `/app/config.toml`, revert to using it. Revert 16315c0e126598e79460d84190181f5cf5a2c8fb (what was workaround for breaking change, though there is no need to break anything here) Closes #270 + requested: podsync located again at /app/podsync, instead of /podsync --- Dockerfile | 7 +++++-- docker-compose.yml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 358f0e37..d7202d19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,13 @@ # See docs for details: https://goreleaser.com/customization/docker/ FROM alpine:3.10 +WORKDIR /app + RUN wget -O /usr/bin/youtube-dl https://github.com/ytdl-org/youtube-dl/releases/latest/download/youtube-dl && \ chmod +x /usr/bin/youtube-dl && \ apk --no-cache add ca-certificates python ffmpeg tzdata -COPY podsync /podsync +COPY podsync /app/podsync + -ENTRYPOINT ["/podsync"] +ENTRYPOINT ["/app/podsync"] CMD ["--no-banner"] diff --git a/docker-compose.yml b/docker-compose.yml index 68c97c64..7aeb6f25 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,4 +9,4 @@ services: - 80:80 volumes: - ./data:/data/ - - ./config.toml:/config.toml + - ./config.toml:/app/config.toml