Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -22,7 +22,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
| 22 |
pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
# Copy application code
|
| 25 |
-
COPY
|
| 26 |
|
| 27 |
# Create non-root user for security
|
| 28 |
RUN useradd --create-home --shell /bin/bash app && \
|
|
@@ -37,4 +37,4 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
|
| 37 |
CMD curl -f http://localhost:8000/ || exit 1
|
| 38 |
|
| 39 |
# Run the application
|
| 40 |
-
CMD ["uvicorn", "
|
|
|
|
| 22 |
pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
# Copy application code
|
| 25 |
+
COPY app.py .
|
| 26 |
|
| 27 |
# Create non-root user for security
|
| 28 |
RUN useradd --create-home --shell /bin/bash app && \
|
|
|
|
| 37 |
CMD curl -f http://localhost:8000/ || exit 1
|
| 38 |
|
| 39 |
# Run the application
|
| 40 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|