Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
|
2 |
-
FROM python:3.
|
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 ["
|
|
|
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"]
|