> RUN mkdir /app > WORKDIR /app
Just WORKDIR /app, since 2015 WORKDIR directive creates a dir if it does not exist
WORKDIR /app
WORKDIR
CMD puma -C config/puma.rb
CMD uses execvpe sys-call so it's better to pass arguments as a list
execvpe
CMD ["puma", "-C", "config/puma.rb"]
Thanks. I meant to change that so long ago (removing mkdir). Old habits die hard!
In the next orats release I'll update the Dockerfile and this post to reflect both changes.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just
WORKDIR /app
, since 2015WORKDIR
directive creates a dir if it does not existCMD uses
execvpe
sys-call so it's better to pass arguments as a listThanks. I meant to change that so long ago (removing mkdir). Old habits die hard!
In the next orats release I'll update the Dockerfile and this post to reflect both changes.