lively06
commited on
Commit
·
8f34048
1
Parent(s):
e682edd
commit5
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -8,7 +8,8 @@ WORKDIR /code
|
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
# Install requirements.txt
|
11 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
12 |
|
13 |
# Set up a new user named "user" with user ID 1000
|
14 |
RUN useradd -m -u 1000 user
|
@@ -25,4 +26,4 @@ WORKDIR $HOME/app
|
|
25 |
COPY --chown=user . $HOME/app
|
26 |
|
27 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
28 |
-
CMD ["gunicorn" "-k" " uvicorn.workers.UvicornWorker" "app:app"]
|
|
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
# Install requirements.txt
|
11 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt \
|
12 |
+
pip install --no-cache-dir --upgrade --force-reinstall gunicorn
|
13 |
|
14 |
# Set up a new user named "user" with user ID 1000
|
15 |
RUN useradd -m -u 1000 user
|
|
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
28 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
29 |
+
CMD ["gunicorn" "-k" " uvicorn.workers.UvicornWorker" "app:app"]
|