image_tone_up / Dockerfile
Suprhimp
update
561087f
raw
history blame
919 Bytes
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"]