Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Dockerfile #1

wants to merge 1 commit into from

Conversation

djmaze
Copy link

@djmaze djmaze commented Apr 28, 2015

Also, please consider adding an automated build to the Docker registry hub afterwards. This makes it easier to run e.g. on CoreOS.

Thanks for your work!


RUN gem install --no-document etcenv

RUN groupadd -g 500 core && useradd -u 500 -g 500 core
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CoreOS specific stuff?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right, had a specific use case for that. But that's not even the case anymore. I'll remove that commit.

@sorah
Copy link
Owner

sorah commented May 26, 2015

Sorry for late reply!

@@ -0,0 +1,5 @@
FROM ruby

RUN gem install --no-document etcenv
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RUN mkdir /app
WORKDIR /app
ADD . /app
RUN bundle install
ENTRYPOINT ["bundle", "exec", "etcenv"]

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, building from source is even better ;)

But bundler is not needed here. I changed it to use the normal gem build procedure now. Just take whichever you like best..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants