From 5952de1c84f3e65cde3157d8c7f4f355a5bb3dc4 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Fri, 15 Apr 2022 22:09:26 +0200 Subject: [PATCH] Add dockerfile --- Dockerfile | 5 +++++ build_docker_image.sh | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 Dockerfile create mode 100755 build_docker_image.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d241711 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM debian:bullseye-slim + +COPY basic-oidc /usr/local/bin/basic-oidc + +ENTRYPOINT /usr/local/bin/basic-oidc diff --git a/build_docker_image.sh b/build_docker_image.sh new file mode 100755 index 0000000..3413e60 --- /dev/null +++ b/build_docker_image.sh @@ -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 +