CoolFace
Apppublic

dhindman/ltc25-vision-statement-categorizer

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile28 linesDownload Raw Back to root
1# Use an official Python runtime as a parent image2FROM python:3.9-slim3 4# Set the working directory in the container5WORKDIR /code6 7# Set the Hugging Face cache directory to a writable location within the container8ENV HF_HOME=/code/cache9ENV SENTENCE_TRANSFORMERS_HOME=/code/cache10 11# Create the cache directory and make it writable12RUN mkdir -p /code/cache && chmod 777 /code/cache13 14# Copy the dependencies file to the working directory15COPY ./requirements.txt /code/requirements.txt16 17# Install any needed packages specified in requirements.txt18RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt19 20# Copy the rest of the application's code to the working directory21COPY . /code/22 23# Expose the port the app runs on24EXPOSE 786025 26# Command to run the application27CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]28