Build Docker image.

This commit is contained in:
Syfaro 2019-12-18 02:50:07 -06:00
parent 97246f502a
commit 29eddb4536
3 changed files with 23 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
target

17
.drone.yml Normal file
View File

@ -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
...

5
Dockerfile Normal file
View File

@ -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"]