mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
7393d9c2bc
This commit updates the Dockerfile and docker-compose.llm.yml files to include the LLM Models directory. The Dockerfile now uses the `ADD .` command to copy the entire repository into the container at `/app`, and the docker-compose.llm.yml file has been modified to set the context to the `./LLM` directory. These changes ensure that the LLM Models directory is included in the Docker image and that the correct context is used for building the image.
18 lines
541 B
Smarty
18 lines
541 B
Smarty
# Use an official Python runtime as a parent image
|
|
FROM huggingface/transformers-pytorch-gpu:latest
|
|
|
|
# Set the working directory in the container to /app
|
|
WORKDIR /app
|
|
|
|
# Copy the current directory contents into the container at /app
|
|
ADD . /app
|
|
|
|
# Install any needed packages specified in requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Make port 8547 available to the world outside this container
|
|
EXPOSE 8547
|
|
|
|
# Run app.py when the container launches
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8547" ]
|