add set -e to entrypoint
better copy of entrypoint.sh and use proper entrypoint
This commit is contained in:
Aaron Kimbre 2024-01-01 21:30:01 -06:00
parent 1034afc513
commit 7499e24519
4 changed files with 9 additions and 6 deletions

View File

@ -26,10 +26,11 @@ COPY --from=build /app/build/vanity /app/default-vanity
COPY --from=build /app/build/navmeshes /app/navmeshes
COPY --from=build /app/build/migrations /app/migrations
COPY --from=build /app/build/*.dcf /app/
COPY ./entrypoint.sh /app/
COPY --chmod=0500 ./entrypoint.sh /app/
RUN ldconfig
# needed as the container runs with the root user
# and therefore sudo doesn't exist
ENV USE_SUDO_AUTH=0
RUN chmod +x entrypoint.sh
CMD [ "/app/entrypoint.sh" ]
ENTRYPOINT [ "/app/entrypoint.sh" ]

View File

@ -353,7 +353,7 @@ Known good *SHA1* checksum of the Darkflame Universe client:
## Standalone
For standalone deployment, you can use the image provided via Github's Container Repository:
`ghcr.io/darkflameuniverse/darkfameserver`
`ghcr.io/darkflameuniverse/darkflameserver`
This assumes that you have a database deployed to your host or in another docker container.
@ -371,7 +371,7 @@ docker run -it \
-p 1001:1001/udp \
-p 2005:2005/udp \
-p 3000-3300:3000-3300/udp \
ghcr.io/darkflameuniverse/darkfameserver:latest
ghcr.io/darkflameuniverse/darkflameserver:latest
```
You will need to replace the `/path/to/`'s to reflect the paths on your host.

View File

@ -14,7 +14,7 @@ services:
darkfameserver:
networks:
- darkflame
image: ghcr.io/darkflameuniverse/darkfameserver:latest
image: ghcr.io/darkflameuniverse/darkflameserver:latest
volumes:
- $HOST_CONFIG_DIR:/app/configs/
- $HOST_CLIENT_LOCATION:$CLIENT_LOCATION:ro

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash
set -e
mkdir -p /app/configs/
cp -n /app/default-configs/* /app/configs/
mkdir -p /app/vanity/