|
FROM runpod/pytorch:2.2.1-py3.10-cuda12.1.1-devel-ubuntu22.04 |
|
WORKDIR /content |
|
ENV PATH="/home/camenduru/.local/bin:${PATH}" |
|
RUN adduser --disabled-password --gecos '' camenduru && \ |
|
adduser camenduru sudo && \ |
|
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \ |
|
chown -R camenduru:camenduru /content && \ |
|
chmod -R 777 /content && \ |
|
chown -R camenduru:camenduru /home && \ |
|
chmod -R 777 /home |
|
COPY ./requirements.txt /content/requirements.txt |
|
RUN pip install --no-cache-dir --upgrade -r /content/requirements.txt |
|
COPY . . |
|
USER camenduru |
|
CMD python worker.py |