Skip to content

Commit f735844

Browse files
committed
Revert changes to dockerfiles
1 parent f3e2c82 commit f735844

2 files changed

Lines changed: 13 additions & 21 deletions

File tree

codeclash/arenas/battlesnake/BattleSnake.Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,27 @@ FROM ubuntu:22.04
22

33
ENV 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
88
RUN 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
1815
RUN 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
2522
RUN 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
2825
WORKDIR /workspace
2926

3027
RUN 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

codeclash/arenas/huskybench/HuskyBench.Dockerfile

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,18 @@ FROM python:3.10-slim
33
ARG DEBIAN_FRONTEND=noninteractive
44
ENV TZ=Etc/UTC
55

6-
RUN apt-get update && apt-get install -y --no-install-recommends \
7-
wget \
8-
git \
9-
build-essential \
10-
unzip \
11-
lsof \
12-
&& rm -rf /var/lib/apt/lists/*
13-
14-
# Install uv
15-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
6+
RUN apt update && apt install -y \
7+
wget \
8+
git \
9+
build-essential \
10+
unzip \
11+
lsof \
12+
&& rm -rf /var/lib/apt/lists/*
1613

1714
RUN git clone https://github.com/CodeClash-ai/HuskyBench.git /workspace \
1815
&& cd /workspace \
1916
&& git remote set-url origin https://github.com/CodeClash-ai/HuskyBench.git
2017
WORKDIR /workspace
2118

22-
# Install Cython first (required build dependency for eval7, which doesn't declare it)
23-
RUN uv pip install --system --no-cache-dir Cython
24-
RUN uv pip install --system --no-cache-dir --no-build-isolation -r engine/requirements.txt
19+
RUN pip install -r engine/requirements.txt
2520
RUN mkdir -p /workspace/engine/output

0 commit comments

Comments
 (0)