Fred808 commited on
Commit
c7bf824
·
verified ·
1 Parent(s): 5e4d70a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -9,16 +9,8 @@ ARG VERSION_UTK="1.2.0"
9
  ARG VERSION_PASST="2025_09_19"
10
 
11
  # Set working dir
12
- WORKDIR /app
13
 
14
 
15
- # Make the entire /app directory fully writeable for all users
16
- RUN chmod -R 777 /app
17
-
18
- # Ensure the app runs as the same user as the Space UI
19
- RUN useradd -m -u 1000 user
20
- USER user
21
-
22
  ARG DEBCONF_NOWARNINGS="yes"
23
  ARG DEBIAN_FRONTEND="noninteractive"
24
  ARG DEBCONF_NONINTERACTIVE_SEEN="true"
@@ -77,6 +69,15 @@ COPY --chmod=744 ./web/conf/nginx.conf /etc/nginx/default.conf
77
 
78
  ADD --chmod=755 "https://github.com/qemus/fiano/releases/download/v${VERSION_UTK}/utk_${VERSION_UTK}_${TARGETARCH}.bin" /run/utk.bin
79
 
 
 
 
 
 
 
 
 
 
80
  VOLUME /storage
81
  EXPOSE 22 5900 8006
82
 
 
9
  ARG VERSION_PASST="2025_09_19"
10
 
11
  # Set working dir
 
12
 
13
 
 
 
 
 
 
 
 
14
  ARG DEBCONF_NOWARNINGS="yes"
15
  ARG DEBIAN_FRONTEND="noninteractive"
16
  ARG DEBCONF_NONINTERACTIVE_SEEN="true"
 
69
 
70
  ADD --chmod=755 "https://github.com/qemus/fiano/releases/download/v${VERSION_UTK}/utk_${VERSION_UTK}_${TARGETARCH}.bin" /run/utk.bin
71
 
72
+ WORKDIR /.
73
+
74
+
75
+ # Make the entire /app directory fully writeable for all users
76
+ RUN chmod -R 777 /.
77
+
78
+
79
+ USER root
80
+
81
  VOLUME /storage
82
  EXPOSE 22 5900 8006
83