Sync changes
This commit is contained in:
+17
-6
@@ -1,8 +1,19 @@
|
||||
# Dockerfile
|
||||
FROM python:3.11-slim
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||
WORKDIR /app
|
||||
RUN uv pip install --system fastmcp mcp
|
||||
COPY server.py .
|
||||
|
||||
# Install system dependencies including git for version control operations
|
||||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* && pip install fastmcp mcp requests playwright markitdown && playwright install chromium --with-deps
|
||||
|
||||
RUN groupadd -g 1000 user && \
|
||||
useradd -m -u 1000 -g 1000 -s /bin/bash user
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
COPY server.py /app/server.py
|
||||
|
||||
USER 1000:1000
|
||||
|
||||
RUN playwright install
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["python", "server.py"]
|
||||
|
||||
CMD ["python", "/app/server.py"]
|
||||
|
||||
Reference in New Issue
Block a user