aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2022-01-24 14:18:47 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2022-01-24 14:18:47 +0100
commit60a3f7bf15c43182dfc5797fce27b603c104db02 (patch)
treed358692a26287632287bc32645bd63db7507ca9b /Dockerfile
downloadRSS-watcher-60a3f7bf15c43182dfc5797fce27b603c104db02.tar.gz
RSS-watcher-60a3f7bf15c43182dfc5797fce27b603c104db02.zip
Initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..07ecd76
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,13 @@
+FROM rust:1.40 as builder
+
+WORKDIR /usr/src/rss-watcher
+COPY . .
+
+RUN cargo install --path .
+
+FROM debian:buster-slim
+RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
+COPY --from=builder /usr/local/cargo/bin/rss-watcher /usr/local/bin/rss-watcher
+ENV RUST_LOG=info
+
+CMD ["rss-watcher"]