Download Dockerfile from Nottybro/wirelessaudit-proxy: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/spaces/Nottybro/wirelessaudit-proxy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Nottybro/wirelessaudit-proxy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Nottybro/wirelessaudit-proxy/resolve/main/Dockerfile
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"] | |