Update Dockerfile
Browse files- 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
|