-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update dockerfile to use slurm-dist as base
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |