mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-28 16:55:32 +00:00
Added Dockerfiles
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
pb_data/
|
||||
_tmp/
|
||||
import/Almanach-Bilder/
|
||||
import/
|
||||
Almanach-Bilder/
|
||||
musenalm
|
||||
node_modules
|
||||
tmp/
|
||||
|
||||
10
Dockerfile
Normal file
10
Dockerfile
Normal 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
4
scripts/docker.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -t musenalm-backend -v musenalm:/app/data .
|
||||
|
||||
3
scripts/run.sh
Executable file
3
scripts/run.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
./musenalm serve --http=0.0.0.0:8080 --dir=/app/data/pb_data
|
||||
Reference in New Issue
Block a user