lib/smartcloud/grids/grid-runner/Dockerfile in smartcloud-0.0.125 vs lib/smartcloud/grids/grid-runner/Dockerfile in smartcloud-0.0.126
- old
+ new
@@ -34,6 +34,18 @@
RUN gem install smartcloud --no-rdoc --no-ri
COPY spawner.rb "/spawner.rb"
-CMD ["ruby", "/spawner.rb"]
+# Generating entrypoint file
+RUN echo -e "#!/bin/sh\n\
+\n\
+ruby /spawner.rb
+\n\
+su - $USER_NAME
+\n\
+exec \"$@\"" >> /entrypoint; chmod +x /entrypoint;
+
+# Set entrypoint
+ENTRYPOINT ["/entrypoint"]
+
+CMD "git, fcgiwrap"