grammar-corrector-api / Dockerfile
Moncey10's picture
Create Dockerfile
c35869b verified
raw
history blame contribute delete
435 Bytes
# Start with a standard Python 3.9 environment
FROM python:3.9
# Set the folder where the app will live
WORKDIR /code
# Install your project tools from requirements.txt
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy your app.py into the server
COPY . .
# Launch your FastAPI app on port 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]