Add support for multi-platform builds with docker buildx

- also added docs
This commit is contained in:
Joseph Goh 2022-10-23 06:10:36 +08:00
parent d85efbad60
commit 108b19970b
No known key found for this signature in database
GPG key ID: 0C83392A0999DD5A
4 changed files with 33 additions and 20 deletions

12
docs/docker.md Normal file
View file

@ -0,0 +1,12 @@
# Docker Setup
## Build Image:
`docker build -t tshock .`
## and run:
```bash
docker run -p 7777:7777 -p 7878:7878 \
-v <save path>:/tshock \
-v <world path>:/worlds \
-v <plugin path>:/plugins \
--rm -it tshock [-world /worlds/<world file>] <other cmdline flags>
```