LiamDowd commited on
Commit
7e66843
1 Parent(s): 6b4b98e

Create DOCKERFILE

Browse files
Files changed (1) hide show
  1. DOCKERFILE +28 -0
DOCKERFILE ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN useradd -m -u 1000 user
8
+ USER user
9
+ ENV HOME=/home/user \
10
+ PATH=/home/user/.local/bin:$PATH
11
+
12
+ WORKDIR $HOME/app
13
+
14
+ COPY --chown=user . $HOME/app
15
+
16
+ USER root
17
+ RUN apt-get update && apt-get install -y \
18
+ ffmpeg \
19
+ libsm6 \
20
+ libxext6
21
+
22
+ USER 1000
23
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
24
+ RUN python -m spacy download en_core_web_lg
25
+
26
+ COPY . .
27
+
28
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]