Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
workaround phusion container ignoring HOME
Browse files Browse the repository at this point in the history
HOME was ignored by the phusion container. Workaround in
phusion/baseimage-docker#119
  • Loading branch information
cardoe committed Sep 11, 2017
1 parent 6506da3 commit 4ad3eb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ ENTRYPOINT ["/sbin/my_init", "--"]
# Where we build
RUN mkdir -p /var/build
WORKDIR /var/build
ENV HOME /var/build
# workaround HOME ignore. see https://github.com/phusion/baseimage-docker/issues/119
RUN echo /var/build > /etc/container_environment/HOME

# utilize my_init from the baseimage to create the user for us
# the reason this is dynamic is so that the caller of the container
Expand Down

0 comments on commit 4ad3eb9

Please sign in to comment.