Spaces:
Building
Building
Closure-RI
commited on
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -7,12 +7,15 @@ RUN apk add --no-cache curl docker-compose
|
|
7 |
# Buat user non-root
|
8 |
RUN adduser -D -u 1000 user
|
9 |
|
10 |
-
#
|
11 |
WORKDIR /home/user/app
|
|
|
|
|
|
|
12 |
USER user
|
13 |
|
14 |
# Ambil docker-compose.yml dari raw URL
|
15 |
-
RUN curl -o docker-compose.yml https://raw.githubusercontent.com/Lingz-ui/data-myBot/refs/heads/main/docker-compose.yml
|
16 |
|
17 |
EXPOSE 7860
|
18 |
|
|
|
7 |
# Buat user non-root
|
8 |
RUN adduser -D -u 1000 user
|
9 |
|
10 |
+
# Buat direktori kerja dan berikan izin
|
11 |
WORKDIR /home/user/app
|
12 |
+
RUN mkdir -p /home/user/app && chown user:user /home/user/app
|
13 |
+
|
14 |
+
# Switch ke user non-root
|
15 |
USER user
|
16 |
|
17 |
# Ambil docker-compose.yml dari raw URL
|
18 |
+
RUN curl -L -o docker-compose.yml https://raw.githubusercontent.com/Lingz-ui/data-myBot/refs/heads/main/docker-compose.yml
|
19 |
|
20 |
EXPOSE 7860
|
21 |
|