aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-13 00:08:37 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-13 00:08:37 +0200
commitd3bbba263d4bfce087181d3cdb40fe8c89177624 (patch)
tree8b2401c75ea92506c3137c73d2a28176f95e651c
parenta526716e6885fd4c812fbff464ddcaf2c5e5955a (diff)
downloadfeed2imap-go-d3bbba263d4bfce087181d3cdb40fe8c89177624.tar.gz
feed2imap-go-d3bbba263d4bfce087181d3cdb40fe8c89177624.tar.bz2
feed2imap-go-d3bbba263d4bfce087181d3cdb40fe8c89177624.zip
Move app-data into /app in docker imagev0.3.1
-rw-r--r--Dockerfile7
-rw-r--r--README.md6
2 files changed, 7 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 1d26d4e..2bb5f93 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,7 @@
FROM alpine
-COPY feed2imap-go /
+RUN mkdir /app
+COPY feed2imap-go /app
-ENTRYPOINT ["/feed2imap-go"]
-CMD ["-c", "/data/feed.cache", "-f", "/data/config.yml"]
+ENTRYPOINT ["/app/feed2imap-go"]
+CMD ["-c", "/app/data/feed.cache", "-f", "/app/data/config.yml"]
diff --git a/README.md b/README.md
index 60ea6ac..22a8aa7 100644
--- a/README.md
+++ b/README.md
@@ -92,12 +92,12 @@ and b) the update process is not clear, especially regarding the dependencies.
### Run in docker
-Most times, putting feed2imap-go somewhere and adding a cron job does everything you need. For the times, where it isn't we provide docker containers for your convenience at [Github Packages](https://github.com/Necoro/feed2imap-go/packages).
+Most times, putting feed2imap-go somewhere and adding a cron job does everything you need. For the times where it isn't, we provide docker containers for your convenience at [Github Packages](https://github.com/Necoro/feed2imap-go/packages).
-The container is configured to expect both config file and cache under `/data/`, thus needs it mounted there.
+The container is configured to expect both config file and cache under `/app/data/`, thus needs it mounted there.
When both are stored in `~/feed`, you can do:
````bash
-docker run -v ~/feed:/data docker.pkg.github.com/necoro/feed2imap-go/feed2imap-go:latest
+docker run -v ~/feed:/app/data docker.pkg.github.com/necoro/feed2imap-go/feed2imap-go:latest
````
Alternatively, build the docker image yourself (requires the `feed2imap-go` binary at toplevel):