Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/games.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- hytale
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug
Expand All @@ -29,11 +30,11 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v4
- uses: docker/build-push-action@v6
with:
context: ./games/${{ matrix.game }}
file: ./games/${{ matrix.game }}/Dockerfile
platforms: linux/amd64
platforms: ${{ matrix.game == 'hytale' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
push: true
tags: |
ghcr.io/pterodactyl/games:${{ matrix.game }}
27 changes: 17 additions & 10 deletions games/hytale/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,26 @@ LABEL author="William V." maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
LABEL org.opencontainers.image.licenses=MIT

USER root

COPY --from=ghcr.io/pterodactyl/yolks:java_25 entrypoint.sh /java.sh
RUN chmod +x /java.sh

RUN apt-get update -y \
&& apt-get install -y unzip jq \
&& rm -rf /var/lib/apt/lists/*
USER root

RUN apt update -y \
&& apt install -y \
tini \
unzip \
zip \
dbus \
file \
python3-minimal \
python3-requests \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./entrypoint.sh /entrypoint.sh
COPY --chown=container:container ./entrypoint.py /entrypoint.py
RUN chmod +x /entrypoint.py

CMD [ "/bin/bash", "/entrypoint.sh" ]
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.py"]
Loading