Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -11
Dockerfile
CHANGED
@@ -1,17 +1,9 @@
|
|
1 |
-
# you will also find guides on how best to write your Dockerfile
|
2 |
-
ARG GRADIO_SERVER_PORT=7860
|
3 |
FROM python:3.9
|
4 |
|
5 |
WORKDIR /code
|
6 |
|
7 |
-
RUN pip install --no-cache-dir gradio
|
8 |
-
RUN useradd -m -u 1000 user
|
9 |
-
USER user
|
10 |
-
ENV HOME=/home/user \
|
11 |
-
PATH=/home/user/.local/bin:$PATH
|
12 |
|
13 |
-
|
14 |
|
15 |
-
|
16 |
-
EXPOSE 7860
|
17 |
-
CMD ["python3", "app.py"]
|
|
|
|
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
RUN pip install --no-cache-dir --upgrade -r gradio
|
|
|
|
|
|
|
|
|
6 |
|
7 |
+
COPY . .
|
8 |
|
9 |
+
CMD ["python3 app.py"]
|
|
|
|