image-colorization / Dockerfile
ummagumm-a's picture
l
f0b0e5d
raw
history blame contribute delete
455 Bytes
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"]