PanagiotisMark commited on
Commit
9c32cf4
·
1 Parent(s): 438fa76

- Added Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM intelligencenoborders/inobo:scinobo-claim-verification
2
+
3
+ RUN useradd -m -u 1000 user
4
+ RUN chown -R user /app
5
+ USER user
6
+ ENV HOME=/home/user \
7
+ PATH=/home/user/.local/bin:$PATH
8
+
9
+
10
+ # Set the working directory in the container
11
+ WORKDIR /app/src
12
+
13
+ # Expose the port that Gradio will run on
14
+ EXPOSE 7860
15
+
16
+ ENV PYTHONUNBUFFERED=1 \
17
+ GRADIO_ALLOW_FLAGGING=never \
18
+ GRADIO_NUM_PORTS=1 \
19
+ GRADIO_SERVER_NAME=0.0.0.0 \
20
+ SYSTEM=spaces
21
+
22
+ # Run app.py when the container launches
23
+ CMD ["python", "-m", "claim_analysis.server.gradio_app"]