Spaces:
Sleeping
Sleeping
Ezhil
commited on
Commit
·
f7821f2
1
Parent(s):
e0ec062
modified code
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -11,8 +11,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 11 |
# Copy the rest of the application
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
|
|
|
| 16 |
|
|
|
|
|
|
|
| 17 |
# Run the application with Uvicorn
|
| 18 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 11 |
# Copy the rest of the application
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
+
RUN useradd -m appuser
|
| 15 |
+
USER appuser
|
| 16 |
+
|
| 17 |
|
| 18 |
+
# Expose the FastAPI app port
|
| 19 |
+
EXPOSE 7860
|
| 20 |
# Run the application with Uvicorn
|
| 21 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|