Charan5775 commited on
Commit
5e887be
·
verified ·
1 Parent(s): 142822f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,7 +1,10 @@
1
  FROM diegosouzapw/omniroute:latest
2
 
3
- # Install dependencies
4
- RUN apt-get update && \
 
 
 
5
  apt-get install -y curl ca-certificates gnupg && \
6
  mkdir -p --mode=0755 /usr/share/keyrings && \
7
  curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg \
@@ -16,6 +19,8 @@ RUN apt-get update && \
16
  COPY start.sh /start.sh
17
  RUN chmod +x /start.sh
18
 
 
 
19
  EXPOSE 20128
20
 
21
  ENTRYPOINT ["/start.sh"]
 
1
  FROM diegosouzapw/omniroute:latest
2
 
3
+ USER root
4
+
5
+ RUN mkdir -p /var/lib/apt/lists/partial && \
6
+ chmod 755 /var/lib/apt/lists /var/lib/apt/lists/partial && \
7
+ apt-get update && \
8
  apt-get install -y curl ca-certificates gnupg && \
9
  mkdir -p --mode=0755 /usr/share/keyrings && \
10
  curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg \
 
19
  COPY start.sh /start.sh
20
  RUN chmod +x /start.sh
21
 
22
+ USER app
23
+
24
  EXPOSE 20128
25
 
26
  ENTRYPOINT ["/start.sh"]