Update Dockerfile
Browse files- Dockerfile +16 -6
Dockerfile
CHANGED
@@ -1,10 +1,20 @@
|
|
|
|
1 |
FROM python:3.11
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
4 |
RUN git clone https://github.com/Niansuh/hf-llm-api.git /app
|
|
|
|
|
5 |
WORKDIR "/app"
|
6 |
-
|
7 |
-
#
|
8 |
-
|
|
|
|
|
9 |
EXPOSE 23333
|
10 |
-
|
|
|
|
|
|
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"]
|