dnth commited on
Commit
cef1674
·
verified ·
1 Parent(s): d335cd6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile CHANGED
@@ -1 +1,13 @@
1
  FROM dnth/ram-plus-image-tagging-gpu
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM dnth/ram-plus-image-tagging-gpu
2
+
3
+ # Set BentoML home to a writable directory
4
+ ENV BENTOML_HOME=/home/user/bentoml
5
+
6
+ # Create a non-root user
7
+ RUN useradd -m -u 1000 user
8
+
9
+ # Create BentoML home directory and set permissions
10
+ RUN mkdir -p /home/user/bentoml && chown -R user:user /home/user/bentoml
11
+
12
+ # Switch to non-root user
13
+ USER user