diff --git a/Dockerfile b/Dockerfile index aa20403..ed05a35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,8 +28,5 @@ ENV PATH="/bundle/ruby/$RUBY_VERSION/bin:${PATH}" # Install Rails RUN gem install rails -# Ensure binding is always 0.0.0.0, even in development, to access server from outside container -ENV BINDING="0.0.0.0" - # Overwrite ruby image's entrypoint to provide open cli -ENTRYPOINT [""] +ENTRYPOINT ["rails"] diff --git a/README.md b/README.md index 5bc2d40..eaf3532 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@ alias docked='docker run --rm -it -v ${PWD}:/rails -u $(id -u):$(id -g) -v ruby- Then create your Rails app: ```bash -docked rails new weblog +docked new weblog cd weblog -docked rails generate scaffold post title:string body:text -docked rails db:migrate -docked rails server +docked generate scaffold post title:string body:text +docked db:migrate +docked server ``` That's it! Your Rails app is running on `http://localhost:3000/posts`.