Mr-Help/Tash-Create-Contractor-List
0
1# Use an official Python runtime as a parent image2FROM python:3.93 4# Set the working directory in the container5WORKDIR /app6 7# Copy the current directory contents into the container at /app8COPY . /app9 10# Install any needed packages specified in requirements.txt11RUN pip install --no-cache-dir -r requirements.txt12 13# Set environment variables, including TRANSFORMERS_CACHE14ENV TRANSFORMERS_CACHE /app/cache15 16# Set cache directory permissions17RUN mkdir -p /app/cache && chmod 777 /app/cache18 19# Make port 7860 available to the world outside this container20EXPOSE 786021 22# Define the command to run your application23CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]