mzimm003 commited on
Commit
b798daa
·
1 Parent(s): d288960

Update huggingface space.

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -4
  2. requirements.txt +5 -1
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
- FROM python:3.9
5
 
6
  RUN useradd -m -u 1000 user
7
  USER user
@@ -10,12 +10,11 @@ ENV PATH="/home/user/.local/bin:$PATH"
10
  WORKDIR /app
11
 
12
  COPY --chown=user ./requirements.txt requirements.txt
 
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
  RUN git clone https://github.com/mzimm003/Chess /app/Chess
16
- USER root
17
- RUN python ./Chess/setup.py install
18
- USER user
19
 
20
  COPY --chown=user . /app
21
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
+ FROM python:3.8.12
5
 
6
  RUN useradd -m -u 1000 user
7
  USER user
 
10
  WORKDIR /app
11
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
+ RUN pip install --upgrade pip
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
  RUN git clone https://github.com/mzimm003/Chess /app/Chess
17
+ RUN pip install /app/Chess
 
 
18
 
19
  COPY --chown=user . /app
20
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -2,4 +2,8 @@ uvicorn
2
  ray==2.9.3
3
  ray[tune]==2.9.3
4
  torch==1.13.1
5
- pygame==2.1.3.dev8
 
 
 
 
 
2
  ray==2.9.3
3
  ray[tune]==2.9.3
4
  torch==1.13.1
5
+ pygame==2.1.3.dev8
6
+ pettingzoo==1.24.3
7
+ chess==1.10.0
8
+ dm_tree==0.1.8
9
+ scikit-image