lib/smartcloud/grids/grid-runner/Dockerfile in smartcloud-0.0.193 vs lib/smartcloud/grids/grid-runner/Dockerfile in smartcloud-0.0.194
- old
+ new
@@ -30,14 +30,17 @@
apk add --update git-daemon && \
apk add --update ruby && \
apk add --update spawn-fcgi && \
rm -rf /var/cache/apk/*
+USER "$USER_NAME"
+WORKDIR "/home/$USER_NAME/.smartcloud/grids/grid-runner/apps"
+
# Generating entrypoint file
RUN echo -e '#!/bin/sh\n\
gem install --no-document --local smartcloud\n\
-exec "$@"' >> /entrypoint; chmod +x /entrypoint
+exec "$@"' >> "/home/$USER_NAME/entrypoint"; chmod +x "/home/$USER_NAME/entrypoint"
# Set entrypoint
-ENTRYPOINT ["/entrypoint"]
+ENTRYPOINT ["/home/$USER_NAME/entrypoint"]
-CMD "git, fcgiwrap & spawn-fcgi installed"
+CMD ["spawn-fcgi", "-n", "-p", "9000", "/usr/bin/fcgiwrap", "-f"]