Merge pull request #75 from parkervcp/add/mumble

add mumble image
This commit is contained in:
Quinten
2022-10-05 18:34:18 +02:00
committed by GitHub
3 changed files with 35 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ jobs:
matrix:
tag:
- teaspeak
- mumble
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2

18
voice/mumble/Dockerfile Normal file
View 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"]

View 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}