OpenWeatherMCPServer / Dockerfile
Rehan12345678's picture
Update Dockerfile
eb64a08 verified
Raw History Blame Contribute Delete
663 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9
# Set the working directory to /code
WORKDIR /code
# Copy the requirements file into the container
COPY ./requirements.txt /code/requirements.txt
# Install the dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy your entire project (including the src folder) into the container
COPY ./ /code/
# Run the FastAPI app, specifying the module path
# The format is <folder.file_name>:<app_variable>
# If you have a src folder and streamlit_app.py file, the path is src.streamlit_app
CMD ["uvicorn", "src.streamlit_app:app", "--host", "0.0.0.0", "--port", "7860"]