simonduerr/ProteinMPNN
166
1FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.042 3#FROM nvidia/cuda:11.6.1-devel-ubuntu20.044 5#ENV TZ=Europe/Berlin6#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone7 8RUN apt-get update9#RUN apt install -y tzdata10#RUN apt-get -y update && apt-get -y install software-properties-common \11#&& add-apt-repository ppa:deadsnakes/ppa && apt install -y python3.1012 13RUN apt-get install -y python3 python3-pip git wget14 15WORKDIR /code16 17COPY ./requirements.txt /code/requirements.txt18 19RUN python3 -m pip install --upgrade pip 20 21RUN pip install gradio==3.46.022RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt23 24# Set up a new user named "user" with user ID 100025RUN useradd -m -u 1000 user26 27# Switch to the "user" user28USER user29 30# Set home to the user's home directory31ENV HOME=/home/user \32 PATH=/home/user/.local/bin:$PATH33 34# Set the working directory to the user's home directory35WORKDIR $HOME/app36 37# Copy the current directory contents into the container at $HOME/app setting the owner to the user38COPY --chown=user . $HOME/app39 40EXPOSE 786041ENV GRADIO_SERVER_NAME="0.0.0.0"42 43CMD ["python3", "app.py"]