add mumble image
This commit is contained in:
18
voice/mumble/Dockerfile
Normal file
18
voice/mumble/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM --platform=$TARGETOS/$TARGETARCH alpine:3.16
|
||||
|
||||
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
||||
|
||||
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
|
||||
LABEL org.opencontainers.image.licenses=MIT
|
||||
|
||||
## install dependencies
|
||||
RUN apk add --no-cache murmur
|
||||
|
||||
RUN adduser -D container
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
16
voice/mumble/entrypoint.sh
Normal file
16
voice/mumble/entrypoint.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/ash
|
||||
cd /home/container
|
||||
|
||||
# Make internal Docker IP address available to processes.
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
# Print current Rust version
|
||||
cargo --version
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=$(echo -e $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'))
|
||||
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
Reference in New Issue
Block a user