imperialwool commited on
Commit
85f179c
1 Parent(s): b995a3b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11.1-bullseye
2
+
3
+ USER root
4
+
5
+ ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
6
+
7
+ COPY . /app
8
+
9
+ RUN chmod -R 777 /app
10
+
11
+ WORKDIR /app
12
+
13
+ RUN python3 -m pip install -U --no-cache-dir pip setuptools wheel
14
+
15
+ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
16
+
17
+ RUN mkdir -p /.cache/huggingface/hub
18
+ RUN chown -R root:root /.cache/huggingface/hub
19
+ RUN chmod -R 777 /.cache/huggingface/hub
20
+
21
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]