Text2TextwithDocker / Dockerfile
mars9801's picture
Update Dockerfile
96a6cff verified
raw
history blame
No virus
479 Bytes
# Use the official Python 3.9 image as base
FROM python:3.9
# Set the working directory to /code
WORKDIR /code
# Copy the requirements file into the container at /code
COPY requirements.txt /code/
# Install the requirements
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the current directory contents into the container at /code
COPY . /code
# Start the FastAPI app on port 8100
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8100"]