feat(ci): add docker build

This commit is contained in:
andreas 2019-05-13 21:28:57 +02:00
parent b6c8a2e9b0
commit 4badb8c817
3 changed files with 17 additions and 0 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
target/*/deps
target/*/build
target/debug
target/rls

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM debian
RUN apt update
RUN apt install libssl1.1 openssl ca-certificates
ADD target/release/telegram-leetbot /bin/.
ENV TELEGRAM_BOT_TOKEN="invalid"
CMD '/bin/telegram-leetbot'

3
Jenkinsfile vendored
View File

@ -6,6 +6,9 @@ pipeline {
sh 'cargo build'
}
}
stage('docker') {
docker.build()
}
}
post {