Explorar o código

not using entrypoint + cmd
to demonstrate the signal passing problem

Rodja Trappe hai 1 ano
pai
achega
5c9ced3786
Modificáronse 2 ficheiros con 2 adicións e 3 borrados
  1. 1 1
      docker-entrypoint.sh
  2. 1 2
      release.dockerfile

+ 1 - 1
docker-entrypoint.sh

@@ -24,4 +24,4 @@ chmod -R 777 /usr/share/fonts
 chmod -R 777 /var/cache/fontconfig
 chmod -R 777 /usr/local/share/fonts
 
-exec su appuser -p -c "cd /app && $@"
+exec su appuser -p -c "cd /app && python main.py"

+ 1 - 2
release.dockerfile

@@ -17,5 +17,4 @@ RUN chmod 777 /resources/docker-entrypoint.sh
 EXPOSE 8080
 ENV PYTHONUNBUFFERED True
 
-ENTRYPOINT ["/resources/docker-entrypoint.sh"]
-CMD ["python", "main.py"]
+ENTRYPOINT ["/resources/docker-entrypoint.sh"]