Docker setup.

This commit is contained in:
retoor 2025-03-20 22:52:53 +01:00
parent ce4997317a
commit 77926649ba
3 changed files with 14 additions and 0 deletions

3
borded_cpp/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM alpine:latest
RUN apk update && apk add build-base sqlite-dev vim jansson-dev jansson-static cmake
WORKDIR /home

9
borded_cpp/compose.yml Normal file
View File

@ -0,0 +1,9 @@
services:
cpp:
build: .
command: ["sh","doit.sh"]
tty: true
stdin_open: true
volumes:
- ./:/home
- ../books:/books

2
borded_cpp/doit.sh Executable file
View File

@ -0,0 +1,2 @@
rm -rf build | true
mkdir build && cd build && cmake .. && make