feat: create podman image

This commit is contained in:
Settel 2022-03-03 10:29:01 +01:00
parent 5ba57ae81b
commit 82817c9692
5 changed files with 26 additions and 0 deletions

View File

@ -33,6 +33,9 @@ build:
(cd client/ && yarn generate) (cd client/ && yarn generate)
$(MAKE) -C server build $(MAKE) -C server build
docker:
$(MAKE) -C docker
run-standalone: run-standalone:
$(MAKE) -C server run-standalone $(MAKE) -C server run-standalone

1
docker/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
files/knowyt

5
docker/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM scratch
EXPOSE 32039
COPY files .
CMD ["/knowyt"]

12
docker/Makefile Normal file
View File

@ -0,0 +1,12 @@
build:
cp ../server/knowyt files/
podman build --tag knowyt:latest .
run:
podman run --rm -it -p 32039:32039 -v /home/settel/codes/go/knowyt/server/data/:/data --name knowyt knowyt:latest
stop:
podman stop knowyt
clean:
rm -f files/knowyt

View File

@ -0,0 +1,5 @@
{
"authcode": "646162",
"name": "Settel (Admin)",
"role": "admin"
}