Update Dockerfile
Browse files- Dockerfile +12 -2
Dockerfile
CHANGED
|
@@ -1,2 +1,12 @@
|
|
| 1 |
-
#
|
| 2 |
-
FROM k3scat/nya-proxy:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Start from the official NyaProxy image
|
| 2 |
+
FROM k3scat/nya-proxy:latest
|
| 3 |
+
|
| 4 |
+
# Switch to the root user temporarily to fix permissions
|
| 5 |
+
USER root
|
| 6 |
+
|
| 7 |
+
# Change the ownership of the /app directory to the 'user' that
|
| 8 |
+
# Hugging Face uses to run the container. The -R makes it recursive.
|
| 9 |
+
RUN chown -R user:user /app
|
| 10 |
+
|
| 11 |
+
# Switch back to the standard 'user' for running the application
|
| 12 |
+
USER user
|