docker-test / Dockerfile.old
rahulreshma's picture
Rename Dockerfile to Dockerfile.old
1cb650b verified
raw
history blame
566 Bytes
FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu20.04
RUN echo test
RUN apt update && apt install -y python3 python3-pip python3-venv sudo htop
#USER root
#CMD python3 -m http.server
RUN echo $(pwd)
RUN ls -al
WORKDIR /app
RUN adduser --shell /bin/bash user \
&& chown -R user:user /app
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
COPY --chown=user . /app
#RUN cd /app
USER user
RUN echo $(pwd)
RUN ls -al
RUN python3 -m venv test
RUN ls -l test
RUN $(pwd)/test/bin/pip install -r requirements.txt
USER root
RUN chmod +x start.sh
CMD ["./start.sh"]