Skip to content

Commit

Permalink
update dockerfile to use slurm-dist as base
Browse files Browse the repository at this point in the history
  • Loading branch information
alexboden committed Oct 27, 2024
1 parent 82777cc commit 9de635e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
FROM python:3.9-slim
# Use the Slurm base image
FROM ghcr.io/watonomous/slurm-dist:sha-d71cada1ede70e133c6765e0239840ec97aadd40-slurmdbd

# Install Python and any dependencies
RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*

# Set the working directory in the container
WORKDIR /app

# Copy the Python script and any necessary files
COPY main.py config.py runner_size_config.py RunningJob.py allocate-ephemeral-runner-from-apptainer.sh /app/

# Install any required Python packages
# Install Python requirements
COPY requirements.txt /app/
RUN pip install -r requirements.txt
RUN pip3 install -r requirements.txt

# Run the Python script
CMD ["python", "main.py"]
CMD ["python3", "main.py"]

0 comments on commit 9de635e

Please sign in to comment.