PetrosStav commited on
Commit
74cb6a6
1 Parent(s): f7d9313

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM intelligencenoborders/scinobo-sdg-classification:v0.1.0
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
+ # Set the working directory in the container
10
+ WORKDIR /app/src
11
+
12
+ # Expose the port that Gradio will run on
13
+ EXPOSE 7860
14
+
15
+ ENV PYTHONUNBUFFERED=1 \
16
+ GRADIO_ALLOW_FLAGGING=never \
17
+ GRADIO_NUM_PORTS=1 \
18
+ GRADIO_SERVER_NAME=0.0.0.0 \
19
+ SYSTEM=spaces
20
+
21
+ # Run app.py when the container launches
22
+ CMD ["python", "-m", "sdg.server.gradio_app"]