From 29eddb453656d168d0e9d52d82f233cbf4379791 Mon Sep 17 00:00:00 2001 From: Syfaro Date: Wed, 18 Dec 2019 02:50:07 -0600 Subject: [PATCH] Build Docker image. --- .dockerignore | 1 + .drone.yml | 17 +++++++++++++++++ Dockerfile | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 .dockerignore create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..eb5a316 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +target diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e17cfbf --- /dev/null +++ b/.drone.yml @@ -0,0 +1,17 @@ +--- +kind: pipeline +name: default +type: docker + +steps: +- name: docker + image: plugins/docker + settings: + auto_tag: true + registry: registry.huefox.com + repo: registry.huefox.com/fa-watcher + username: + from_secret: docker_username + password: + from_secret: docker_password +... diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c59e268 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM rustlang/rust:nightly-slim +COPY . . +RUN apt-get -y update && apt-get -y install pkg-config libssl-dev +RUN cargo install --root / --path . +CMD ["/bin/fa-watcher"]