added Dockerfile for server

This commit is contained in:
John Jones 2023-07-24 20:34:48 -04:00
parent 41c674161f
commit 010a3cbe81
2 changed files with 19 additions and 0 deletions

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM debian:12
RUN apt-get update -y && apt-get install -y build-essential g++ git
WORKDIR /app/src
COPY . .
RUN make -j
VOLUME [ "/models" ]
ENTRYPOINT [ "/app/src/start.sh" ]

11
start.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
echo "Starting up"
if [ -n "$REBUILD" ]; then
ls
make clean
make -j
fi
/app/src/server "$@"