Added Dockerfiles

This commit is contained in:
Simon Martens
2025-03-02 11:38:20 +01:00
parent 9132120a7a
commit 9f70ccd0a5
4 changed files with 19 additions and 1 deletions

3
.gitignore vendored
View File

@@ -1,6 +1,7 @@
pb_data/
_tmp/
import/Almanach-Bilder/
import/
Almanach-Bilder/
musenalm
node_modules
tmp/

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM golang:1.24
WORKDIR /app
COPY . .
RUN go build -tags=sqlite_fts5,sqlite_json,sqlite_foreign_keys,sqlite_vtable,sqlite_math_functions
EXPOSE 8080
CMD ["./scripts/run.sh"]

4
scripts/docker.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
docker build -t musenalm-backend -v musenalm:/app/data .

3
scripts/run.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
./musenalm serve --http=0.0.0.0:8080 --dir=/app/data/pb_data