File size: 579 Bytes
c964a20
 
 
 
 
 
 
 
 
 
58b1a01
 
c964a20
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Dockerfile
# Use an official Python runtime as a parent image
FROM python:3.12-slim

# Set the working directory in the container
WORKDIR /code

# Copy the pyproject.toml file and install dependencies
COPY pyproject.toml /code/
RUN pip install --no-cache-dir uv
RUN pip install fastmcp

RUN uv pip install --no-cache-dir --system .

# Copy the rest of the application code
COPY . /code/

# Expose the port the app runs on (must match the port in README.md and calculator_server.py)
EXPOSE 7860

# Define the command to run the application
CMD ["python", "calculator_server.py"]