Generate Docker image for backend
This commit is contained in:
parent
a9ac04147d
commit
53c435881e
9
geneit_backend/Dockerfile
Normal file
9
geneit_backend/Dockerfile
Normal 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 geneit_backend /usr/local/bin/geneit_backend
|
||||||
|
|
||||||
|
ENTRYPOINT /usr/local/bin/geneit_backend
|
10
geneit_backend/build_docker_image.sh
Executable file
10
geneit_backend/build_docker_image.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
TEMP_DIR=$(mktemp -d)
|
||||||
|
cp target/release/geneit_backend "$TEMP_DIR"
|
||||||
|
|
||||||
|
docker build -f Dockerfile "$TEMP_DIR" -t pierre42100/geneit_backend
|
||||||
|
|
||||||
|
rm -r $TEMP_DIR
|
||||||
|
|
Loading…
Reference in New Issue
Block a user