Spaces:
Paused
Paused
Suprhimp
commited on
Commit
•
416fd99
1
Parent(s):
a80ee4b
Update Dockerfile
Browse files- Dockerfile +12 -2
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
@@ -6,8 +6,18 @@ COPY ./requirements.txt /code/requirements.txt
|
|
6 |
|
7 |
RUN apt-get update && apt-get install -y libgl1-mesa-glx libosmesa6
|
8 |
RUN apt-get install python3-opengl
|
9 |
-
RUN
|
|
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
COPY . .
|
12 |
|
13 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
+
FROM tensorflow/tensorflow:2.0.0-gpu-py3
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
6 |
|
7 |
RUN apt-get update && apt-get install -y libgl1-mesa-glx libosmesa6
|
8 |
RUN apt-get install python3-opengl
|
9 |
+
RUN apt-cache search mesa
|
10 |
+
RUN apt-get update && apt-get install -y libgl1-mesa-glx libosmesa6
|
11 |
|
12 |
+
# Run the command inside your image filesystem
|
13 |
+
RUN pip install --upgrade pip && \
|
14 |
+
pip install gym && \
|
15 |
+
pip install gym[atari] && \
|
16 |
+
pip install PyOpenGL==3.1.0 && \
|
17 |
+
pip install dm_control && \
|
18 |
+
pip install tqdm && \
|
19 |
+
pip install np_utils && \
|
20 |
+
pip install opencv-python
|
21 |
COPY . .
|
22 |
|
23 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|