ApaCu commited on
Commit
d0c7664
·
verified ·
1 Parent(s): 87c6d60

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /code
4
+
5
+ # Install dependencies
6
+ COPY ./requirements.txt /code/requirements.txt
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ # Copy code
10
+ COPY ./main.py /code/main.py
11
+
12
+ # Set environment variables
13
+ ENV AI_MODEL_ID="TheBloke/Mistral-7B-Instruct-v0.2-GPTQ"
14
+ ENV PYTHONUNBUFFERED=1
15
+
16
+ # Expose port
17
+ EXPOSE 7860
18
+
19
+ # Command to run the application
20
+ CMD ["python", "main.py"]