Merge branch 'master' into tini

This commit is contained in:
Quinten
2023-09-06 19:37:29 +02:00
committed by GitHub
27 changed files with 335 additions and 99 deletions

39
.github/workflows/bun.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: build bun
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
push:
branches:
- master
paths:
- bun/**
jobs:
push:
name: "yolks:bun_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
- latest
- canary
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v4
with:
context: ./bun
file: ./bun/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/parkervcp/yolks:bun_${{ matrix.tag }}

View File

@@ -21,6 +21,7 @@ jobs:
- ubuntu - ubuntu
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2 - uses: docker/setup-buildx-action@v2
with: with:
buildkitd-flags: --debug buildkitd-flags: --debug
@@ -33,7 +34,7 @@ jobs:
with: with:
context: ./installers context: ./installers
file: ./installers/${{ matrix.tag }}/Dockerfile file: ./installers/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: | tags: |
ghcr.io/parkervcp/installers:${{ matrix.tag }} ghcr.io/parkervcp/installers:${{ matrix.tag }}

View File

@@ -17,6 +17,7 @@ jobs:
matrix: matrix:
tag: tag:
- latest - latest
- devel
- staging - staging
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@@ -51,6 +51,13 @@ is tagged correctly.
* [`Box64`](/box64) * [`Box64`](/box64)
* `ghcr.io/parkervcp/yolks:box64` * `ghcr.io/parkervcp/yolks:box64`
### [Bun](/bun)
* [`Bun Canary`](/bun/canary)
* `ghcr.io/parkervcp/yolks:bun_canary`
* [`Bun Latest`](/bun/latest)
* `ghcr.io/parkervcp/yolks:bun_latest`
### [Cassandra](/cassandra) ### [Cassandra](/cassandra)
* [`cassandra_java8_python27`](/cassandra/cassandra_java8_python2) * [`cassandra_java8_python27`](/cassandra/cassandra_java8_python2)
@@ -176,6 +183,7 @@ is tagged correctly.
* [`node20`](/nodejs/20) * [`node20`](/nodejs/20)
* `ghcr.io/parkervcp/yolks:nodejs_20` * `ghcr.io/parkervcp/yolks:nodejs_20`
### [PostgreSQL](/postgres) ### [PostgreSQL](/postgres)
* [`Postgres 9`](/postgres/9) * [`Postgres 9`](/postgres/9)
@@ -244,6 +252,7 @@ is tagged correctly.
* [`Wine`](/wine) * [`Wine`](/wine)
* `ghcr.io/parkervcp/yolks:wine_latest` * `ghcr.io/parkervcp/yolks:wine_latest`
* `ghcr.io/parkervcp/yolks:wine_devel`
* `ghcr.io/parkervcp/yolks:wine_staging` * `ghcr.io/parkervcp/yolks:wine_staging`
### [Installation Images](/installers) ### [Installation Images](/installers)

17
bun/canary/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM --platform=$TARGETOS/$TARGETARCH oven/bun:canary
LABEL author="MrAtox" maintainer="mratox@protonmail.com"
RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool \
&& useradd -m -d /home/container container
RUN bun upgrade
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
ENTRYPOINT []
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]

16
bun/entrypoint.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
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 Bun Version
bun -v
# Replace Startup Variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}

17
bun/latest/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM --platform=$TARGETOS/$TARGETARCH oven/bun:latest
LABEL author="MrAtox" maintainer="mratox@protonmail.com"
RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool \
&& useradd -m -d /home/container container
RUN bun upgrade
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
ENTRYPOINT []
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]

View File

@@ -29,7 +29,12 @@ LABEL org.opencontainers.image.licenses=MIT
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386 \ RUN apt update && apt upgrade -y \
&& apt update \ && apt -y --no-install-recommends install ca-certificates curl git unzip zip tar jq wget
&& apt upgrade -y \
&& apt -y --no-install-recommends install ca-certificates curl lib32gcc-s1 libsdl2-2.0-0:i386 git unzip zip tar jq wget # Only install the needed steamcmd packages on the AMD64 build
RUN if [ "$(uname -m)" = "x86_64" ]; then \
dpkg --add-architecture i386 && \
apt update && \
apt -y install lib32gcc-s1 libsdl2-2.0-0:i386; \
fi

View File

@@ -6,9 +6,23 @@ LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolk
LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.licenses=MIT
RUN apt update -y \ RUN apt update -y \
&& apt install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 tini \ && apt install -y \
&& useradd -d /home/container -m container curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6 \
tini
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container

View File

@@ -3,12 +3,24 @@ FROM --platform=$TARGETOS/$TARGETARCH ibm-semeru-runtimes:open-11-jdk
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update -y \ RUN apt update -y \
&& apt install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 tini \ && apt install -y \
&& useradd -d /home/container -m container curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6 \
tini
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container
STOPSIGNAL SIGINT STOPSIGNAL SIGINT
@@ -16,4 +28,4 @@ STOPSIGNAL SIGINT
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"] ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@@ -6,9 +6,22 @@ LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolk
LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.licenses=MIT
RUN apt update -y \ RUN apt update -y \
&& apt install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 tini \ && apt install -y \
&& useradd -d /home/container -m container curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6 \
tini
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container

View File

@@ -3,12 +3,24 @@ FROM --platform=$TARGETOS/$TARGETARCH ibm-semeru-runtimes:open-16-jdk
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update -y \ RUN apt update -y \
&& apt install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 tini \ && apt install -y \
&& useradd -d /home/container -m container curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6 \
tini
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container
STOPSIGNAL SIGINT STOPSIGNAL SIGINT
@@ -17,3 +29,4 @@ COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"] ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@@ -1,4 +1,4 @@
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:17-jdk-focal FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:17-jdk-jammy
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
@@ -6,9 +6,22 @@ LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolk
LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.licenses=MIT
RUN apt update -y \ RUN apt update -y \
&& apt install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 tini \ && apt install -y \
&& useradd -d /home/container -m container curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6 \
tini
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container

View File

@@ -1,4 +1,4 @@
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:19-jdk-focal FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:19-jdk-jammy
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
@@ -6,9 +6,22 @@ LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolk
LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.licenses=MIT
RUN apt update -y \ RUN apt update -y \
&& apt install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 tini \ && apt install -y \
&& useradd -d /home/container -m container curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6 \
tini
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container

View File

@@ -6,9 +6,22 @@ LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolk
LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.licenses=MIT
RUN apt update -y \ RUN apt update -y \
&& apt install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 tini \ && apt install -y \
&& useradd -d /home/container -m container curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6 \
tini
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container

View File

@@ -3,12 +3,24 @@ FROM --platform=$TARGETOS/$TARGETARCH ibm-semeru-runtimes:open-8-jdk
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update -y \ RUN apt update -y \
&& apt install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 tini \ && apt install -y \
&& useradd -d /home/container -m container curl \
lsof \
ca-certificates \
openssl \
git \
tar \
sqlite3 \
fontconfig \
tzdata \
iproute2 \
libfreetype6 \
tini
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container
STOPSIGNAL SIGINT STOPSIGNAL SIGINT

0
java/entrypoint.sh Normal file → Executable file
View File

View File

@@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:12-bullseye-slim
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update \ RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping tini \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \
&& useradd -m -d /home/container container && useradd -m -d /home/container container
RUN npm install npm@latest -g RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

View File

@@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:14-bullseye-slim
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update \ RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping tini \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \
&& useradd -m -d /home/container container && useradd -m -d /home/container container
RUN npm install npm@latest -g RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

View File

@@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:16-bullseye-slim
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update \ RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping tini \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \
&& useradd -m -d /home/container container && useradd -m -d /home/container container
RUN npm install npm@latest -g RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

View File

@@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:17-bullseye-slim
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update \ RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 libnss3 \
&& useradd -m -d /home/container container && useradd -m -d /home/container container
RUN npm install npm@8.11.0 --location=global RUN npm install npm@8.11.0 typescript ts-node @types/node --location=global
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

View File

@@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:18-bullseye-slim
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update \ RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping tini \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \
&& useradd -m -d /home/container container && useradd -m -d /home/container container
RUN npm install npm@latest -g RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

View File

@@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:19-bullseye-slim
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update \ RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping tini \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \
&& useradd -m -d /home/container container && useradd -m -d /home/container container
RUN npm install npm@latest -g RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

View File

@@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:20-bullseye-slim
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt update \ RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping tini \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \
&& useradd -m -d /home/container container && useradd -m -d /home/container container
RUN npm install npm@latest -g RUN npm install npm@latest typescript ts-node @types/node --location=global
USER container USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

36
wine/devel/Dockerfile Normal file
View File

@@ -0,0 +1,36 @@
# ---------------------------------------
# Generic Wine image based on Wine devel
# ---------------------------------------
FROM ghcr.io/parkervcp/yolks:debian
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
LABEL org.opencontainers.image.licenses=MIT
## install required packages
RUN dpkg --add-architecture i386 \
&& apt update -y \
&& apt install -y --no-install-recommends gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386
# Install wine and with recommends
RUN mkdir -pm755 /etc/apt/keyrings
RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources
RUN apt update
RUN apt install --install-recommends winehq-devel cabextract wine-binfmt -y
# Set up Winetricks
RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
&& chmod +x /usr/sbin/winetricks
ENV HOME=/home/container
ENV WINEPREFIX=/home/container/.wine
ENV WINEDLLOVERRIDES="mscoree,mshtml="
ENV DISPLAY=:0
ENV DISPLAY_WIDTH=1024
ENV DISPLAY_HEIGHT=768
ENV DISPLAY_DEPTH=16
ENV AUTO_UPDATE=1
ENV XVFB=1
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]

View File

@@ -1,40 +1,36 @@
# --------------------------------------- # ---------------------------------------
# Generic Wine image based on Wine stable # Generic Wine image based on Wine stable
# --------------------------------------- # ---------------------------------------
FROM ghcr.io/parkervcp/yolks:debian FROM ghcr.io/parkervcp/yolks:debian
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
LABEL org.opencontainers.image.licenses=MIT
## install required packages ## install required packages
RUN dpkg --add-architecture i386 \ RUN dpkg --add-architecture i386 \
&& apt update -y \ && apt update -y \
&& apt install -y --no-install-recommends gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 && apt install -y --no-install-recommends gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386
# Install winehq-stable and with recommends # Install wine and with recommends
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key \ RUN mkdir -pm755 /etc/apt/keyrings
&& apt-key add winehq.key \ RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
&& echo "deb https://dl.winehq.org/wine-builds/debian/ bullseye main" >> /etc/apt/sources.list \ RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources
&& wget -O- -q download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11/Release.key | apt-key add - \ RUN apt update
&& echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11 ./" | tee /etc/apt/sources.list.d/wine-obs.list \ RUN apt install --install-recommends winehq-stable cabextract wine-binfmt -y
&& apt update \
&& apt install -y --install-recommends winehq-stable cabextract
# Set up Winetricks # Set up Winetricks
RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \ RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
&& chmod +x /usr/sbin/winetricks && chmod +x /usr/sbin/winetricks
ENV HOME=/home/container ENV HOME=/home/container
ENV WINEPREFIX=/home/container/.wine ENV WINEPREFIX=/home/container/.wine
ENV WINEDLLOVERRIDES="mscoree,mshtml=" ENV WINEDLLOVERRIDES="mscoree,mshtml="
ENV DISPLAY=:0 ENV DISPLAY=:0
ENV DISPLAY_WIDTH=1024 ENV DISPLAY_WIDTH=1024
ENV DISPLAY_HEIGHT=768 ENV DISPLAY_HEIGHT=768
ENV DISPLAY_DEPTH=16 ENV DISPLAY_DEPTH=16
ENV AUTO_UPDATE=1 ENV AUTO_UPDATE=1
ENV XVFB=1 ENV XVFB=1
USER container COPY ./../entrypoint.sh /entrypoint.sh
WORKDIR /home/container CMD [ "/bin/bash", "/entrypoint.sh" ]
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]

View File

@@ -1,40 +1,36 @@
# --------------------------------------- # ---------------------------------------
# Generic Wine image based on Wine staging # Generic Wine image based on Wine staging
# --------------------------------------- # ---------------------------------------
FROM ghcr.io/parkervcp/yolks:debian FROM ghcr.io/parkervcp/yolks:debian
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
LABEL org.opencontainers.image.licenses=MIT
## install required packages ## install required packages
RUN dpkg --add-architecture i386 \ RUN dpkg --add-architecture i386 \
&& apt update -y \ && apt update -y \
&& apt install -y --no-install-recommends gnupg2 tzdata numactl software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 && apt install -y --no-install-recommends gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386
# Install winehq-stable and with recommends # Install wine and with recommends
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key \ RUN mkdir -pm755 /etc/apt/keyrings
&& apt-key add winehq.key \ RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
&& echo "deb https://dl.winehq.org/wine-builds/debian/ bullseye main" >> /etc/apt/sources.list \ RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources
&& wget -O- -q download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11/Release.key | apt-key add - \ RUN apt update
&& echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11 ./" | tee /etc/apt/sources.list.d/wine-obs.list \ RUN apt install --install-recommends winehq-staging cabextract wine-binfmt -y
&& apt update \
&& apt install -y --install-recommends winehq-staging cabextract
# Set up Winetricks # Set up Winetricks
RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \ RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
&& chmod +x /usr/sbin/winetricks && chmod +x /usr/sbin/winetricks
ENV HOME=/home/container ENV HOME=/home/container
ENV WINEPREFIX=/home/container/.wine ENV WINEPREFIX=/home/container/.wine
ENV WINEDLLOVERRIDES="mscoree,mshtml=" ENV WINEDLLOVERRIDES="mscoree,mshtml="
ENV DISPLAY=:0 ENV DISPLAY=:0
ENV DISPLAY_WIDTH=1024 ENV DISPLAY_WIDTH=1024
ENV DISPLAY_HEIGHT=768 ENV DISPLAY_HEIGHT=768
ENV DISPLAY_DEPTH=16 ENV DISPLAY_DEPTH=16
ENV AUTO_UPDATE=1 ENV AUTO_UPDATE=1
ENV XVFB=1 ENV XVFB=1
USER container COPY ./../entrypoint.sh /entrypoint.sh
WORKDIR /home/container CMD [ "/bin/bash", "/entrypoint.sh" ]
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]