Suprhimp commited on
Commit
e1fffbd
1 Parent(s): 442f6d6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -11
Dockerfile CHANGED
@@ -8,17 +8,20 @@ RUN apt-cache search mesa
8
  RUN apt-get update && apt-get install -y libgl1-mesa-glx libosmesa6
9
  RUN apt-get install -y python3-opengl
10
  RUN apt-get upgrade -y && apt-get install -y python3-pip python-is-python3 && rm -rf /var/lib/apt/lists/*
 
 
11
  # Run the command inside your image filesystem
12
- RUN pip install --upgrade pip && \
13
- pip install gym && \
14
- pip install gym[atari] && \
15
- pip install PyOpenGL==3.1.0 && \
16
- pip install dm_control && \
17
- pip install tqdm && \
18
- pip install np_utils && \
19
- pip install Pillow && \
20
- pip install fastapi && \
21
- pip install uvicorn
 
22
 
23
  RUN useradd -m -u 1000 user
24
  USER user
@@ -30,4 +33,4 @@ WORKDIR $HOME/app
30
 
31
  COPY --chown=user . $HOME/app
32
 
33
- CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
8
  RUN apt-get update && apt-get install -y libgl1-mesa-glx libosmesa6
9
  RUN apt-get install -y python3-opengl
10
  RUN apt-get upgrade -y && apt-get install -y python3-pip python-is-python3 && rm -rf /var/lib/apt/lists/*
11
+ RUN pip install -r requirements.txt
12
+
13
  # Run the command inside your image filesystem
14
+ # RUN pip install --upgrade pip && \
15
+ # pip install gym && \
16
+ # pip install gym[atari] && \
17
+ # pip install PyOpenGL==3.1.0 && \
18
+ # pip install dm_control && \
19
+ # pip install tqdm && \
20
+ # pip install np_utils && \
21
+ # pip install Pillow && \
22
+ # pip install fastapi && \
23
+ # pip install uvicorn &&\
24
+ # pip install boto3
25
 
26
  RUN useradd -m -u 1000 user
27
  USER user
 
33
 
34
  COPY --chown=user . $HOME/app
35
 
36
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]