Files
templates/mcp/Dockerfile.j2
changmin hyeon 0d808202f6 init
2026-02-10 11:33:59 +09:00

15 lines
377 B
Django/Jinja

FROM {{ base_image | default("python:3.11-slim") }}
WORKDIR /app
COPY . /app
{% set pip_opts = "" %}
{% if pip_registry %}
{% set pip_opts = "--index-url " ~ pip_registry %}
{% endif %}
RUN pip install --no-cache-dir -U pip
RUN pip install --no-cache-dir {{ pip_opts }} fastmcp
RUN pip install --no-cache-dir {{ pip_opts }} -r requirements.txt
CMD ["python", "src/main.py"]