Skip to content

Commit

Permalink
Dockerfile change to allow chmod to run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymccann committed Jan 4, 2017
1 parent 8411596 commit ff8acd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ RUN groupadd -r ${HOMEBRIDGE_USER} -g 433 \
##################################################

EXPOSE 5353 51826
COPY ./start.sh ${HOMEBRIDGE_HOME}/start.sh
RUN chmod 755 ${HOMEBRIDGE_HOME}/start.sh

USER ${HOMEBRIDGE_USER}
RUN mkdir -p ${HOMEBRIDGE_INSTALL_DIR}
VOLUME ["${HOMEBRIDGE_CONFIG}", "${HOMEBRIDGE_PLUGINS}", "${HOMEBRIDGE_PERSIST_DIR}"]
WORKDIR ${HOMEBRIDGE_HOME}

COPY ./start.sh ${HOMEBRIDGE_HOME}/start.sh
RUN chmod 755 ${HOMEBRIDGE_HOME}/start.sh
ENTRYPOINT ["/var/homebridge/start.sh"]

0 comments on commit ff8acd3

Please sign in to comment.