Niansuh commited on
Commit
ce52086
·
verified ·
1 Parent(s): ba69e8a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -6
Dockerfile CHANGED
@@ -1,10 +1,20 @@
 
1
  FROM python:3.11
2
- RUN apt update
3
- RUN apt install git
 
 
 
4
  RUN git clone https://github.com/Niansuh/hf-llm-api.git /app
 
 
5
  WORKDIR "/app"
6
- RUN pip install -r requirements.txt
7
- # RUN mkdir -p /data && chmod -R 755 /data
8
- # VOLUME /data
 
 
9
  EXPOSE 23333
10
- CMD ["python", "-m", "apis.chat_api"]
 
 
 
1
+ # Use the official Python 3.11 image as the base image
2
  FROM python:3.11
3
+
4
+ # Update the package lists and install git
5
+ RUN apt update && apt install -y git
6
+
7
+ # Clone the hf-llm-api repository into the /app directory
8
  RUN git clone https://github.com/Niansuh/hf-llm-api.git /app
9
+
10
+ # Set the working directory to /app
11
  WORKDIR "/app"
12
+
13
+ # Install Python dependencies from requirements.txt
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Expose port 23333 for the application
17
  EXPOSE 23333
18
+
19
+ # Command to run the application when the container starts
20
+ CMD ["python", "-m", "apis.chat_api"]