Closure-RI commited on
Commit
ad38873
·
verified ·
1 Parent(s): 540a928

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Set direktori kerja dan user
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