ummagumm-a commited on
Commit
f0b0e5d
1 Parent(s): a9e5870
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM slavchik/image-colorization:latest
2
+
3
+
4
+ # Set up a new user named "user" with user ID 1000
5
+ RUN useradd -m -u 1000 user
6
+
7
+ # Create the directory as root
8
+ RUN mkdir -m 700 /flagged
9
+
10
+ # Change ownership of the directory to the new user
11
+ RUN chown user:user /flagged
12
+
13
+ # Switch to the "user" user
14
+ USER user
15
+
16
+ # RUN python3.7 -m pip install protobuf==3.20.*
17
+ ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
18
+ ENV GRADIO_SERVER_PORT=7860
19
+ CMD ["python3.7", "app.py"]