Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10
|
| 2 |
|
| 3 |
# Create a new user
|
| 4 |
-
RUN useradd -m -u 1000 user
|
| 5 |
|
| 6 |
# Set the working directory
|
| 7 |
WORKDIR /app
|
|
@@ -10,13 +10,13 @@ WORKDIR /app
|
|
| 10 |
COPY . /app
|
| 11 |
|
| 12 |
# Set the correct permissions for the cache directory
|
| 13 |
-
RUN mkdir -p /.cache && chown -R user:user /.cache
|
| 14 |
-
RUN mkdir -p ./chroma_langchain_db && chown -R user:user ./chroma_langchain_db
|
| 15 |
|
| 16 |
|
| 17 |
# Switch to the new user
|
| 18 |
-
USER user
|
| 19 |
|
| 20 |
RUN pip install -r requirements.txt
|
| 21 |
|
| 22 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 1 |
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10
|
| 2 |
|
| 3 |
# Create a new user
|
| 4 |
+
#RUN useradd -m -u 1000 user
|
| 5 |
|
| 6 |
# Set the working directory
|
| 7 |
WORKDIR /app
|
|
|
|
| 10 |
COPY . /app
|
| 11 |
|
| 12 |
# Set the correct permissions for the cache directory
|
| 13 |
+
#RUN mkdir -p /.cache && chown -R user:user /.cache
|
| 14 |
+
#RUN mkdir -p ./chroma_langchain_db && chown -R user:user ./chroma_langchain_db
|
| 15 |
|
| 16 |
|
| 17 |
# Switch to the new user
|
| 18 |
+
#USER user
|
| 19 |
|
| 20 |
RUN pip install -r requirements.txt
|
| 21 |
|
| 22 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|