Skip to content

Commit

Permalink
Merge 336d753 into 0ba3a6e
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jan 5, 2021
2 parents 0ba3a6e + 336d753 commit 166ed05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Expand Up @@ -17,7 +17,6 @@ COPY Gemfile Gemfile.lock ./

RUN bundle install --without production

COPY . .
COPY . ./

EXPOSE 3000
CMD ["rails", "server", "-b", "0.0.0.0"]
ENTRYPOINT ["./docker-entrypoint.sh"]
1 change: 1 addition & 0 deletions Gemfile.lock
Expand Up @@ -469,6 +469,7 @@ GEM

PLATFORMS
ruby
x86_64-darwin-19
x86_64-linux

DEPENDENCIES
Expand Down
9 changes: 9 additions & 0 deletions docker-entrypoint.sh
@@ -0,0 +1,9 @@
#!/bin/sh

set -e

if [ -f tmp/pids/server.pid ]; then
rm tmp/pids/server.pid
fi

bundle exec rails s -b 0.0.0.0

0 comments on commit 166ed05

Please sign in to comment.