First_MCP / Dockerfile
ITSAIDI
update
7cbea50
raw
history blame contribute delete
567 Bytes
# Starting from a base image
FROM python:3.10-slim
# We can Not use WORKDIR, but it's recommanded to isolate the application code in the container filesystem. (more clean)
WORKDIR /firstMcpServer
# Install uv tool
RUN pip install uv
COPY ["pyproject.toml","server.py","./"]
RUN uv sync
# Just a hint telling docker and readers that the container listens on a that port.
# It will not publish the port (you can send requests on that port), to perform that you need to add a publish flag when starting a container
EXPOSE 8080
CMD ["uv","run","server.py"]