mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-07-07 04:00:02 +00:00
fix typo
add set -e to entrypoint better copy of entrypoint.sh and use proper entrypoint
This commit is contained in:
parent
1034afc513
commit
7499e24519
@ -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/navmeshes /app/navmeshes
|
||||||
COPY --from=build /app/build/migrations /app/migrations
|
COPY --from=build /app/build/migrations /app/migrations
|
||||||
COPY --from=build /app/build/*.dcf /app/
|
COPY --from=build /app/build/*.dcf /app/
|
||||||
COPY ./entrypoint.sh /app/
|
COPY --chmod=0500 ./entrypoint.sh /app/
|
||||||
RUN ldconfig
|
RUN ldconfig
|
||||||
|
|
||||||
# needed as the container runs with the root user
|
# needed as the container runs with the root user
|
||||||
# and therefore sudo doesn't exist
|
# and therefore sudo doesn't exist
|
||||||
ENV USE_SUDO_AUTH=0
|
ENV USE_SUDO_AUTH=0
|
||||||
RUN chmod +x entrypoint.sh
|
|
||||||
CMD [ "/app/entrypoint.sh" ]
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
|
@ -353,7 +353,7 @@ Known good *SHA1* checksum of the Darkflame Universe client:
|
|||||||
## Standalone
|
## Standalone
|
||||||
|
|
||||||
For standalone deployment, you can use the image provided via Github's Container Repository:
|
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.
|
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 1001:1001/udp \
|
||||||
-p 2005:2005/udp \
|
-p 2005:2005/udp \
|
||||||
-p 3000-3300:3000-3300/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.
|
You will need to replace the `/path/to/`'s to reflect the paths on your host.
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ services:
|
|||||||
darkfameserver:
|
darkfameserver:
|
||||||
networks:
|
networks:
|
||||||
- darkflame
|
- darkflame
|
||||||
image: ghcr.io/darkflameuniverse/darkfameserver:latest
|
image: ghcr.io/darkflameuniverse/darkflameserver:latest
|
||||||
volumes:
|
volumes:
|
||||||
- $HOST_CONFIG_DIR:/app/configs/
|
- $HOST_CONFIG_DIR:/app/configs/
|
||||||
- $HOST_CLIENT_LOCATION:$CLIENT_LOCATION:ro
|
- $HOST_CLIENT_LOCATION:$CLIENT_LOCATION:ro
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
mkdir -p /app/configs/
|
mkdir -p /app/configs/
|
||||||
cp -n /app/default-configs/* /app/configs/
|
cp -n /app/default-configs/* /app/configs/
|
||||||
mkdir -p /app/vanity/
|
mkdir -p /app/vanity/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user