oneuptime/LLM/Dockerfile.tpl

18 lines
541 B
Docker
Raw Normal View History

2023-10-15 17:14:15 +00:00
# Use an official Python runtime as a parent image
FROM huggingface/transformers-pytorch-gpu:latest
2023-10-14 15:36:12 +00:00
2023-10-15 17:14:15 +00:00
# Set the working directory in the container to /app
WORKDIR /app
2023-10-01 11:46:51 +00:00
2023-10-15 17:14:15 +00:00
# Copy the current directory contents into the container at /app
ADD . /app
2023-10-01 11:46:51 +00:00
2023-10-15 17:14:15 +00:00
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
2023-10-01 11:46:51 +00:00
# Make port 8547 available to the world outside this container
2023-10-18 10:01:15 +00:00
EXPOSE 8547
2023-10-01 11:46:51 +00:00
2023-10-15 17:14:15 +00:00
# Run app.py when the container launches
2023-10-18 10:01:15 +00:00
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8547" ]