wirelessaudit-proxy / Dockerfile
Nottybro's picture
Error reports service (/cos2/)
9df8967 verified
Raw History Blame Contribute Delete
772 Bytes
# One Space, two jobs: the Kimi proxy (unchanged) and the Captain of Sea online server.
# nginx on 7860 sends WebSocket upgrades to the game and everything else to the proxy (see nginx.conf).
FROM python:3.11-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends nginx ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Spaces run as uid 1000.
RUN useradd -m -u 1000 user
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py nginx.conf run.py reports.py ./
COPY server/ ./server/
RUN chmod +x server/CaptainServer.x86_64 && chown -R user:user /app
USER user
ENV HOME=/home/user \
CAPTAIN_SAVES=/home/user/saves \
GAME_PORT=27777 \
MAX_CAPTAINS=60
EXPOSE 7860
CMD ["python", "-u", "run.py"]