TomatoFull commited on
Commit
f84bf73
·
verified ·
1 Parent(s): d3f2ea9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -10,15 +10,17 @@ RUN git clone https://git.zx2c4.com/wireguard-go ./*
10
  RUN cp -r ./t/* . && \
11
  go build -o /usr/local/bin/wireguard-go
12
 
13
- RUN useradd -m appuser
14
- USER appuser
15
-
16
  COPY wg0.conf.template /app/wg0.conf.template
17
  COPY entrypoint.sh /app/entrypoint.sh
18
 
19
- #RUN chmod +x /app/entrypoint.sh
 
 
20
 
21
  EXPOSE 57777/udp
22
  EXPOSE 7860/tcp
23
 
24
- CMD ["bash", " /app/entrypoint.sh"]
 
 
 
 
10
  RUN cp -r ./t/* . && \
11
  go build -o /usr/local/bin/wireguard-go
12
 
 
 
 
13
  COPY wg0.conf.template /app/wg0.conf.template
14
  COPY entrypoint.sh /app/entrypoint.sh
15
 
16
+ RUN chmod +x /app/entrypoint.sh
17
+ RUN chmod -R 777 /app
18
+ RUN chmod 777 /app/entrypoint.sh
19
 
20
  EXPOSE 57777/udp
21
  EXPOSE 7860/tcp
22
 
23
+ RUN useradd -m appuser
24
+ USER appuser
25
+
26
+ CMD ["/app/entrypoint.sh"]