Build docker image
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2023-04-28 09:20:26 +02:00
parent bf570c477f
commit 89c62c0f2f
2 changed files with 19 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM debian:bullseye-slim
RUN apt-get update \
&& apt-get install -y libcurl4 \
&& rm -rf /var/lib/apt/lists/*
COPY oidc-test-client /usr/local/bin/oidc-test-client
ENTRYPOINT /usr/local/bin/oidc-test-client

10
build_docker_image.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
cargo build --release
TEMP_DIR=$(mktemp -d)
cp target/release/oidc-test-client "$TEMP_DIR"
docker build -f Dockerfile "$TEMP_DIR" -t pierre42100/oidc_test_client
rm -r $TEMP_DIR