smithery
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -28,6 +28,17 @@ RUN uv pip install --system --no-cache \
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Debug: List files to verify structure
|
||||
RUN echo "=== Debug: Listing app directory contents ===" && \
|
||||
ls -la /app && \
|
||||
echo "=== Debug: Checking if main.py exists ===" && \
|
||||
ls -la /app/main.py && \
|
||||
echo "=== Debug: Checking Python path and imports ===" && \
|
||||
python -c "import sys; print('Python path:', sys.path)" && \
|
||||
python -c "import core.server; print('Server import successful')" && \
|
||||
echo "=== Debug: Testing health endpoint ===" && \
|
||||
python -c "from core.server import health_check; print('Health check function exists')"
|
||||
|
||||
# Create non-root user for security
|
||||
RUN useradd --create-home --shell /bin/bash app \
|
||||
&& chown -R app:app /app
|
||||
@@ -38,7 +49,11 @@ EXPOSE 8000
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
||||
CMD curl -f http://localhost:${PORT:-8000}/health || exit 1
|
||||
CMD curl -f http://localhost:8000/health || exit 1
|
||||
|
||||
# Debug startup
|
||||
RUN echo "=== Debug: Final startup test ===" && \
|
||||
python -c "print('Testing main.py import...'); import main; print('Main.py import successful')"
|
||||
|
||||
# Command to run the application
|
||||
CMD ["python", "main.py", "--transport", "streamable-http"]
|
||||
|
||||
Reference in New Issue
Block a user