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

Fix empty $HOME #34

Merged
merged 1 commit into from
Jul 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions onbuild/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
FROM docker-rails-base-squashed

ENV RACK_ENV=production RAILS_ENV=production HOME=/home/app \
RAILS_LOG_TO_STDOUT=1 RAILS_SERVE_STATIC_FILES=1
ENV RACK_ENV=production RAILS_ENV=production RAILS_LOG_TO_STDOUT=1 \
RAILS_SERVE_STATIC_FILES=1

# Workaround for $HOME being ignored in phusion/baseimage.
# See: https://github.com/phusion/baseimage-docker/issues/119#issuecomment-287970522
RUN echo /home/app > /etc/container_environment/HOME

CMD ["/sbin/my_init"]
EXPOSE 8080
WORKDIR /home/app/webapp
Expand Down