Browse Source

Fixing tmp/pids/server.pid lockfile issue

Closing #982 @30m
feature/1009
Martin Bober 4 years ago
parent
commit
1ab5d9b2e0
  1. 1
      Dockerfile
  2. 8
      docker-entrypoint.sh

1
Dockerfile

@ -14,6 +14,7 @@ ENV RAILS_LOG_TO_STDOUT true
VOLUME /usr/src/app/public/system
EXPOSE 3000
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
CMD ["rails", "server", "-b", "0.0.0.0"]
COPY Gemfile /usr/src/app/

8
docker-entrypoint.sh

@ -0,0 +1,8 @@
#!/bin/sh
set -e
if [ -f tmp/pids/server.pid ]; then
rm tmp/pids/server.pid
fi
exec bundle exec "$@"
Loading…
Cancel
Save