-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 988 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use an official Python 3.12 runtime as a parent image
FROM python:3.12-slim
# Set the working directory
WORKDIR /app
# This tells Python to look in /app for the 'recml' package
ENV PYTHONPATH="${PYTHONPATH}:/app"
# Install system tools if needed (e.g., git)
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Install the latest jax-tpu-embedding wheel
COPY jax_tpu_embedding-0.1.0.dev20260121-cp312-cp312-manylinux_2_31_x86_64.whl ./
RUN pip install ./jax_tpu_embedding-0.1.0.dev20260121-cp312-cp312-manylinux_2_31_x86_64.whl
# Copy requirements.txt to current directory
COPY requirements.txt ./
# Install dependencies
RUN pip install --upgrade pip
RUN pip install -r ./requirements.txt
# Force install the specific protobuf version
RUN pip install "protobuf>=6.31.1" --no-deps
# Copy the current directory contents into the container
COPY . /app
# Default command to run the training script
CMD ["python", "recml/examples/dlrm_experiment_test.py"]