Initial Jedi Academy server implementation via docker/docker compose
This commit is contained in:
36
jedi-academy/Dockerfile
Normal file
36
jedi-academy/Dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user