edgargg commited on
Commit
dff2b21
1 Parent(s): 037a5f5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
 
2
- FROM python:3.9
3
 
4
  WORKDIR /code
5
 
@@ -9,8 +9,9 @@ RUN mkdir -p /tmp/cache/
9
  RUN chmod a+rwx -R /tmp/cache/
10
  ENV TRANSFORMERS_CACHE=/tmp/cache/
11
 
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
15
 
16
- CMD ["ls", "/usr/local/lib/python3.9/site-packages/gradio_image_annotation/"]
 
1
 
2
+ FROM python:3.10
3
 
4
  WORKDIR /code
5
 
 
9
  RUN chmod a+rwx -R /tmp/cache/
10
  ENV TRANSFORMERS_CACHE=/tmp/cache/
11
 
12
+ RUN pip install --no-cache-dir --upgrade pip
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
  ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
16
 
17
+ CMD ["python", "space.py"]