Add dockerfile
This commit is contained in:
parent
46f7f175b4
commit
5952de1c84
5
Dockerfile
Normal file
5
Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM debian:bullseye-slim
|
||||||
|
|
||||||
|
COPY basic-oidc /usr/local/bin/basic-oidc
|
||||||
|
|
||||||
|
ENTRYPOINT /usr/local/bin/basic-oidc
|
10
build_docker_image.sh
Executable file
10
build_docker_image.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
TEMP_DIR=$(mktemp -d)
|
||||||
|
cp target/release/basic-oidc "$TEMP_DIR"
|
||||||
|
|
||||||
|
docker build -f Dockerfile "$TEMP_DIR" -t pierre42100/basic_oidc
|
||||||
|
|
||||||
|
rm -r $TEMP_DIR
|
||||||
|
|
Loading…
Reference in New Issue
Block a user