Skip to content

Commit

Permalink
feat: pytorch base image with python 3.8.19
Browse files Browse the repository at this point in the history
  • Loading branch information
iDmple committed Aug 26, 2024
1 parent ccad545 commit bd70774
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
# Use the official Python 3.8 image as the base image
FROM python:3.8
FROM pytorch/pytorch:2.3.1-cuda11.8-cudnn8-devel

# Set the working directory inside the container
WORKDIR /app

# Copy the source code into the container
COPY src /app/src

# Update Python to 3.8.19
RUN conda update -n base -c defaults conda && \
conda install -y python=3.8.19 && \
conda update --all --yes

# Copy the requirements.txt file into the container
COPY requirements.txt /app

# Install the Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN /opt/conda/bin/pip install --no-cache-dir -r requirements.txt

# Set the entrypoint to start the main.py script
CMD ["python", "src/main.py", "us", "--file", "/app/data/unchained.sock"]

0 comments on commit bd70774

Please sign in to comment.