Spaces:
Sleeping
Sleeping
Kashyap2512
commited on
Commit
•
08af206
1
Parent(s):
8160a21
Update llm_app/Dockerfile
Browse files- llm_app/Dockerfile +27 -27
llm_app/Dockerfile
CHANGED
@@ -1,28 +1,28 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
RUN apt-get --fix-missing -y update && apt-get install -y --no-install-recommends \
|
4 |
-
wget \
|
5 |
-
python3.8 \
|
6 |
-
python3-pip \
|
7 |
-
nginx \
|
8 |
-
ca-certificates \
|
9 |
-
&& rm -rf /var/lib/apt/lists/*
|
10 |
-
|
11 |
-
RUN ln -s /usr/bin/python3.9 /usr/bin/python
|
12 |
-
|
13 |
-
RUN python -m pip install --upgrade pip setuptools wheel
|
14 |
-
|
15 |
-
RUN apt-get update && apt-get install libgomp1
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
COPY ./llm_app ./llm_app
|
20 |
-
|
21 |
-
WORKDIR /llm_app
|
22 |
-
|
23 |
-
RUN pip install -r requirements.txt
|
24 |
-
|
25 |
-
|
26 |
-
CMD ["uvicorn", "app:app","--host","0.0.0.0","--port","7860"]
|
27 |
-
|
28 |
RUN rm -rf /var/cache
|
|
|
1 |
+
FROM ubuntu:18.04
|
2 |
+
|
3 |
+
RUN apt-get --fix-missing -y update && apt-get install -y --no-install-recommends \
|
4 |
+
wget \
|
5 |
+
python3.8 \
|
6 |
+
python3-pip \
|
7 |
+
nginx \
|
8 |
+
ca-certificates \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
RUN ln -s /usr/bin/python3.9 /usr/bin/python
|
12 |
+
|
13 |
+
RUN python -m pip install --upgrade pip setuptools wheel
|
14 |
+
|
15 |
+
RUN apt-get update && apt-get install libgomp1
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
COPY ./llm_app ./llm_app
|
20 |
+
|
21 |
+
WORKDIR /llm_app
|
22 |
+
|
23 |
+
RUN pip install -r requirements.txt
|
24 |
+
|
25 |
+
|
26 |
+
CMD ["uvicorn", "app:app","--host","0.0.0.0","--port","7860"]
|
27 |
+
|
28 |
RUN rm -rf /var/cache
|