Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
|
@@ -1,15 +1,9 @@
|
|
| 1 |
-
FROM
|
| 2 |
WORKDIR /app
|
| 3 |
|
| 4 |
COPY ./requirements.txt /app/requirements.txt
|
| 5 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
| 6 |
|
| 7 |
-
ENV HOME=/home/user \
|
| 8 |
-
PATH=/home/user/.local/bin:$PATH \
|
| 9 |
-
D2M_PORT=7860 \
|
| 10 |
-
GRADIO_PORT=8000 \
|
| 11 |
-
URL_GRADIO=https://localhost:8000/
|
| 12 |
-
|
| 13 |
# Set up a new user named "user" with user ID 1000
|
| 14 |
RUN useradd -m -u 1000 user
|
| 15 |
|
|
@@ -23,6 +17,12 @@ ENV HOME=/home/user \
|
|
| 23 |
# Set the working directory to the user's home directory
|
| 24 |
WORKDIR $HOME/app
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
COPY . .
|
| 27 |
|
| 28 |
CMD ["python", "main.py"]
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
WORKDIR /app
|
| 3 |
|
| 4 |
COPY ./requirements.txt /app/requirements.txt
|
| 5 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Set up a new user named "user" with user ID 1000
|
| 8 |
RUN useradd -m -u 1000 user
|
| 9 |
|
|
|
|
| 17 |
# Set the working directory to the user's home directory
|
| 18 |
WORKDIR $HOME/app
|
| 19 |
|
| 20 |
+
ENV HOME=/home/user \
|
| 21 |
+
PATH=/home/user/.local/bin:$PATH \
|
| 22 |
+
D2M_PORT=7860 \
|
| 23 |
+
GRADIO_PORT=8000 \
|
| 24 |
+
URL_GRADIO=https://localhost:8000/
|
| 25 |
+
|
| 26 |
COPY . .
|
| 27 |
|
| 28 |
CMD ["python", "main.py"]
|