Skip to content

Commit 34c708d

Browse files
committed
readd WORKDIR /app
`config.toml` uses relative path, from the current directory, `$PWD` by default is `/`. commit f337f6c 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 16315c0 (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
1 parent 142b0e0 commit 34c708d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
# See docs for details: https://goreleaser.com/customization/docker/
33

44
FROM alpine:3.10
5+
WORKDIR /app
6+
57
RUN wget -O /usr/bin/youtube-dl https://github.com/ytdl-org/youtube-dl/releases/latest/download/youtube-dl && \
68
chmod +x /usr/bin/youtube-dl && \
79
apk --no-cache add ca-certificates python ffmpeg tzdata
8-
COPY podsync /podsync
10+
COPY podsync /app/podsync
11+
912

10-
ENTRYPOINT ["/podsync"]
13+
ENTRYPOINT ["/app/podsync"]
1114
CMD ["--no-banner"]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ services:
99
- 80:80
1010
volumes:
1111
- ./data:/data/
12-
- ./config.toml:/config.toml
12+
- ./config.toml:/app/config.toml

0 commit comments

Comments
 (0)