]> git.r.bdr.sh - rbdr/mobius/commitdiff
Update Dockerfile and README info
authorJeff Halter <redacted>
Sat, 4 Jun 2022 01:05:31 +0000 (18:05 -0700)
committerJeff Halter <redacted>
Sat, 4 Jun 2022 01:05:31 +0000 (18:05 -0700)
Dockerfile
README.md

index 156de2de83c87be1ab181f5a02a8b07a00ccc1b7..5ed9bfc3266ec808086f3f0271c951277d8b40f2 100644 (file)
@@ -1,12 +1,13 @@
-FROM golang:1.14
+FROM golang:1.18
 
 WORKDIR /app
 COPY . .
 
-RUN go build -o /app/server/server /app/server/server.go \
+RUN go build -o /app/server/server cmd/mobius-hotline-server/main.go \
   && chmod a+x /app/server/server
 
-EXPOSE 5500 5501 5502
+EXPOSE 5500 5501
 
 WORKDIR /app/server/
-CMD ["server"]
\ No newline at end of file
+CMD ["./server"]
+
index 9597ca3d2483fd557c4c13069485c100e715d310..0a16b2b9520e9c8c12ff9f6394bf0ca6c67a7d2a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -59,6 +59,16 @@ Download a compiled release for your architecture from the Releases page
 
     TODO
 
+### Docker
+
+To run the Mobius server from Docker with a local directory mounted for config and files, follow these steps:
+
+1. Clone this repo: `git clone https://github.com/jhalter/mobius.git`
+2. Copy the config dir somewhere `cp -r cmd/mobius-hotline-server/mobius/config ~/mobius-config` 
+3. Build the Docker image: `docker build . -t mobius-hotline-server:latest`
+4. Run the image:
+    `docker run --rm -p 5500:5500 -p 5501:5501 -v ~/mobius-config:/usr/local/var/mobius/config mobius-hotline-server:latest`
+
 
 ### Build from source