Spaces:
Sleeping
Sleeping
File size: 567 Bytes
7cbea50 819b432 7cbea50 819b432 ec48521 7cbea50 ec48521 7cbea50 ec48521 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# 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"]
|