Files
plex-mcp/Dockerfile
Ben 2ad1aff807
All checks were successful
Build and Push Plex MCP Docker Image / build (push) Successful in 30s
Fix: Include README.md in Docker build context for pyproject.toml
2025-12-28 05:31:14 +00:00

27 lines
579 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Copy project metadata files
COPY pyproject.toml README.md ./
# Install dependencies
RUN pip install --no-cache-dir .
# Copy application code
COPY server.py ./
COPY openapi.json ./
COPY docs/ ./docs/
# Create non-root user
RUN useradd --create-home --shell /bin/bash appuser && \
chown -R appuser:appuser /app
USER appuser
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python -c "import httpx; httpx.get('http://localhost:8000/health').raise_for_status()"
CMD ["python", "server.py"]