feat(ci): add docker build
This commit is contained in:
parent
b6c8a2e9b0
commit
4badb8c817
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
target/*/deps
|
||||
target/*/build
|
||||
target/debug
|
||||
target/rls
|
||||
10
Dockerfile
Normal file
10
Dockerfile
Normal 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
3
Jenkinsfile
vendored
@ -6,6 +6,9 @@ pipeline {
|
||||
sh 'cargo build'
|
||||
}
|
||||
}
|
||||
stage('docker') {
|
||||
docker.build()
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user