fast2 / Dockerfile
deepak191z's picture
Update Dockerfile
58b1a01 verified
raw
history blame contribute delete
579 Bytes
# 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"]