Spaces:
Build error
Build error
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11.9-slim
|
2 |
+
|
3 |
+
# Step 2: Install C++ compiler and other dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
g++ \
|
6 |
+
make \
|
7 |
+
git \
|
8 |
+
&& apt-get clean
|
9 |
+
|
10 |
+
# Step 3: Set the working directory
|
11 |
+
WORKDIR /app
|
12 |
+
|
13 |
+
# Step 4: Copy the source code into the container
|
14 |
+
COPY . /app
|
15 |
+
|
16 |
+
# Step 5: Install Python dependencies
|
17 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
18 |
+
|
19 |
+
# Step 6: Run makefile to build LLMinator
|
20 |
+
RUN make
|
21 |
+
|
22 |
+
# Step 7: Launch LLMinator
|
23 |
+
CMD ["python3","webui.py"]
|