@@ -2,30 +2,27 @@ FROM ubuntu:22.04
22
33ENV DEBIAN_FRONTEND=noninteractive \
44 GO_VERSION=1.22.0 \
5- PATH=/usr/local/go/bin:/root/.local/bin: $PATH
5+ PATH=/usr/local/go/bin:$PATH
66
7- # Install Python 3.10 and prerequisites (no pip needed - using uv)
7+ # Install Python 3.10 ( and alias python→python3.10), pip, and prerequisites
88RUN apt-get update \
99 && apt-get install -y --no-install-recommends \
1010 curl ca-certificates python3.10 python3.10-venv \
11- python-is-python3 wget git build-essential jq locales \
11+ python3-pip python-is-python3 wget git build-essential jq curl locales \
1212 && rm -rf /var/lib/apt/lists/*
1313
14- # Install uv
15- COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
16-
1714# Set architecture and install Go 1.22
1815RUN ARCH=$(dpkg --print-architecture) && \
1916 echo "Building for architecture: $ARCH" && \
2017 curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz -o /tmp/go.tar.gz && \
2118 tar -C /usr/local -xzf /tmp/go.tar.gz && \
2219 rm /tmp/go.tar.gz
2320
24- # Clone repository
21+ # Inject GitHub token for private repo access
2522RUN git clone https://github.com/CodeClash-ai/BattleSnake.git /workspace \
2623 && cd /workspace \
2724 && git remote set-url origin https://github.com/CodeClash-ai/BattleSnake.git
2825WORKDIR /workspace
2926
3027RUN cd game && go build -o battlesnake ./cli/battlesnake/main.go
31- RUN uv pip install --system --no-cache-dir -r requirements.txt
28+ RUN pip install -r requirements.txt
0 commit comments