Update Dockerfile

This commit is contained in:
2026-01-05 16:19:06 +01:00
parent fbd831ebe8
commit 5919b04e3d

View File

@@ -1,17 +1,10 @@
FROM ubuntu:25.10
FROM nvidia/opengl:1.2-glvnd-runtime-ubuntu22.04
RUN echo "deb http://ubuntu.ethz.ch/ubuntu/ noble main restricted universe multiverse" > /etc/apt/sources.list && \
echo "deb http://ubuntu.ethz.ch/ubuntu/ noble-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb http://ubuntu.ethz.ch/ubuntu/ noble-security main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb http://ubuntu.ethz.ch/ubuntu/ noble-backports main restricted universe multiverse" >> /etc/apt/sources.list && \
apt update
RUN apt update && apt install -y \
RUN apt-get update && apt-get install -y \
xvfb \
libgtk-3-0 \
libgtk-3-dev \
libgl1-mesa-dev \
xorg-dev \
libgl1 \
unzip \
xz-utils \
wget \
@@ -38,6 +31,14 @@ RUN apt update && apt install -y \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
vulkan-tools \
mesa-utils \
&& rm -rf /var/lib/apt/lists/*
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
ENV __GLX_VENDOR_LIBRARY_NAME=nvidia
RUN curl -fsSL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o /tmp/go.tar.gz && \
rm -rf /usr/local/go && \
tar -C /usr/local -xzf /tmp/go.tar.gz && \
@@ -93,8 +94,8 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& npm install -g npm@latest \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app/danser/custom-replays/
RUN mkdir -p /app/danser/skins/default-skin/
RUN mkdir -p /app/danser/custom-replays/ \
/app/danser/skins/default-skin/
COPY src/maps/* /app/danser/songs/
COPY src/replays/* /app/danser/custom-replays/