Spaces:
Sleeping
Sleeping
Viraaj Sawant commited on
Commit ·
8be1f41
1
Parent(s): adff592
updated rewards
Browse files
rl_code_fix_env/server/Dockerfile
CHANGED
|
@@ -4,9 +4,9 @@ FROM ${BASE_IMAGE} AS builder
|
|
| 4 |
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Ensure git
|
| 8 |
RUN apt-get update && \
|
| 9 |
-
apt-get install -y --no-install-recommends git && \
|
| 10 |
rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
# Build argument to control whether we're building standalone or in-repo
|
|
@@ -20,11 +20,9 @@ COPY . /app/env
|
|
| 20 |
# For standalone builds, openenv will be installed via pyproject.toml
|
| 21 |
WORKDIR /app/env
|
| 22 |
|
| 23 |
-
# Ensure uv is available
|
| 24 |
RUN if ! command -v uv >/dev/null 2>&1; then \
|
| 25 |
-
curl -LsSf https://astral.sh/uv/install.sh |
|
| 26 |
-
mv /root/.local/bin/uv /usr/local/bin/uv && \
|
| 27 |
-
mv /root/.local/bin/uvx /usr/local/bin/uvx; \
|
| 28 |
fi
|
| 29 |
|
| 30 |
# Install dependencies using uv sync
|
|
@@ -46,6 +44,11 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
|
| 46 |
# Final runtime stage
|
| 47 |
FROM ${BASE_IMAGE}
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
WORKDIR /app
|
| 50 |
|
| 51 |
# Copy environment code + its in-place virtualenv from builder.
|
|
|
|
| 4 |
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Ensure git and curl are available
|
| 8 |
RUN apt-get update && \
|
| 9 |
+
apt-get install -y --no-install-recommends git curl ca-certificates && \
|
| 10 |
rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
# Build argument to control whether we're building standalone or in-repo
|
|
|
|
| 20 |
# For standalone builds, openenv will be installed via pyproject.toml
|
| 21 |
WORKDIR /app/env
|
| 22 |
|
| 23 |
+
# Ensure uv is available
|
| 24 |
RUN if ! command -v uv >/dev/null 2>&1; then \
|
| 25 |
+
curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=/usr/local/bin sh; \
|
|
|
|
|
|
|
| 26 |
fi
|
| 27 |
|
| 28 |
# Install dependencies using uv sync
|
|
|
|
| 44 |
# Final runtime stage
|
| 45 |
FROM ${BASE_IMAGE}
|
| 46 |
|
| 47 |
+
# Install curl for health check
|
| 48 |
+
RUN apt-get update && \
|
| 49 |
+
apt-get install -y --no-install-recommends curl && \
|
| 50 |
+
rm -rf /var/lib/apt/lists/*
|
| 51 |
+
|
| 52 |
WORKDIR /app
|
| 53 |
|
| 54 |
# Copy environment code + its in-place virtualenv from builder.
|