Create Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11
|
| 2 |
+
RUN apt update
|
| 3 |
+
RUN apt install git
|
| 4 |
+
RUN git clone https://github.com/Hansimov/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"]
|