feat: create podman image
This commit is contained in:
parent
5ba57ae81b
commit
82817c9692
3
Makefile
3
Makefile
@ -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
1
docker/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
files/knowyt
|
5
docker/Dockerfile
Normal file
5
docker/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM scratch
|
||||||
|
|
||||||
|
EXPOSE 32039
|
||||||
|
COPY files .
|
||||||
|
CMD ["/knowyt"]
|
12
docker/Makefile
Normal file
12
docker/Makefile
Normal 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
|
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"authcode": "646162",
|
||||||
|
"name": "Settel (Admin)",
|
||||||
|
"role": "admin"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user