36 lines
799 B
Docker
36 lines
799 B
Docker
FROM debian:bookworm-slim
|
|
|
|
# Enable 32-bit architecture (Wine needs it)
|
|
RUN dpkg --add-architecture i386
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
wine \
|
|
wine32 \
|
|
wine64 \
|
|
winbind \
|
|
cabextract \
|
|
xvfb \
|
|
--no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create a non-root user
|
|
RUN useradd -m -s /bin/bash jamp
|
|
USER jamp
|
|
WORKDIR /home/jamp
|
|
|
|
# Initialize Wine prefix silently
|
|
ENV WINEPREFIX=/home/jamp/.wine
|
|
ENV WINEDEBUG=-all
|
|
RUN wineboot --init 2>/dev/null || true
|
|
|
|
# Game mode (default - ForceMod_III)
|
|
ENV FS_GAME=ForceMod_III
|
|
|
|
# Copy server files
|
|
COPY --chown=jamp:jamp server/ /home/jamp/server/
|
|
COPY --chown=jamp:jamp entrypoint.sh /home/jamp/entrypoint.sh
|
|
RUN chmod +x /home/jamp/entrypoint.sh
|
|
|
|
EXPOSE 29070/udp
|
|
|
|
ENTRYPOINT ["/home/jamp/entrypoint.sh"] |