Spaces:
Paused
Paused
File size: 919 Bytes
8555e23 3450e6b 220f8ca 3450e6b 220f8ca 3450e6b 416fd99 ab5fc39 561087f 416fd99 ae35813 3450e6b 220f8ca becccfa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
FROM nvidia/cuda:11.7.1-base-ubuntu22.04
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN apt-cache search mesa
RUN apt-get update && apt-get install -y libgl1-mesa-glx libosmesa6
RUN apt-get install -y python3-opengl
RUN apt-get upgrade -y && apt-get install -y python3-pip python-is-python3 && rm -rf /var/lib/apt/lists/*
# Run the command inside your image filesystem
RUN pip install --upgrade pip && \
pip install gym && \
pip install gym[atari] && \
pip install PyOpenGL==3.1.0 && \
pip install dm_control && \
pip install tqdm && \
pip install np_utils && \
pip install Pillow && \
pip install fastapi && \
pip install uvicorn
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|