File size: 455 Bytes
f0b0e5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM slavchik/image-colorization:latest


# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user

# Create the directory as root
RUN mkdir -m 700 /flagged

# Change ownership of the directory to the new user
RUN chown user:user /flagged

# Switch to the "user" user
USER user

# RUN python3.7 -m pip install protobuf==3.20.*
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
ENV GRADIO_SERVER_PORT=7860
CMD ["python3.7", "app.py"]