1
0
Эх сурвалжийг харах

Revert "Revert "eol""

This reverts commit 987461280df29d5b91068ab055ff37c620e38979.
neil 3 жил өмнө
parent
commit
e94488f5e3
3 өөрчлөгдсөн 28 нэмэгдсэн , 0 устгасан
  1. 8 0
      Dockerfile
  2. 11 0
      Dockerfile.alpine
  3. 9 0
      entry.sh

+ 8 - 0
Dockerfile

@@ -36,3 +36,11 @@ RUN mkdir -p /etc/nginx/socks
 
 VOLUME ["/etc/nginx/stream.d"]
 
+COPY entry.sh /app/
+RUN chmod +x /app/entry.sh
+
+ENTRYPOINT ["/app/entry.sh"]
+
+CMD ["forego", "start", "-r"]
+
+

+ 11 - 0
Dockerfile.alpine

@@ -31,3 +31,14 @@ RUN mkdir -p /etc/nginx/socks
 
 VOLUME ["/etc/nginx/stream.d"]
 
+
+COPY entry.sh /app/
+RUN chmod +x /app/entry.sh
+
+
+ENTRYPOINT ["/app/entry.sh"]
+CMD ["forego", "start", "-r"]
+
+
+
+

+ 9 - 0
entry.sh

@@ -0,0 +1,9 @@
+#!/bin/sh
+
+rm -f /etc/nginx/socks/*
+
+
+
+exec /app/docker-entrypoint.sh  "$@"
+
+