Skip to content

Commit

Permalink
Bug/ecp1122 container variables (#1564)
Browse files Browse the repository at this point in the history
* added final step with permission and ownership changes in the dockerfile

* pre-creating production.log file
  • Loading branch information
and-lucas-kelly authored Aug 19, 2021
1 parent 012689c commit 4f71b30
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,17 @@ COPY . ${APP_HOME}/
# End
CMD [ "bundle", "exec", "rake" ]

# # move all app directories and files to appuser and the appgroup
# USER root
# move all app directories and files to appuser and the appgroup
USER root

RUN chmod 777 -R ${APP_HOME}/app

RUN chown -hR appuser:appgroup ${APP_HOME}/log
RUN chown -hR appuser:appgroup ${APP_HOME}/app
RUN chown -hR appuser:appgroup ${APP_HOME}/tmp

# RUN chmod 777 -R ${APP_HOME}/app
RUN touch ${APP_HOME}/log/production.log

# RUN chown -R appuser:appgroup ${APP_HOME}/log
# RUN chown -R appuser:appgroup ${APP_HOME}/app
# RUN chown -R appuser:appgroup ${APP_HOME}/tmp
RUN chmod 0666 ${APP_HOME}/log/production.log

# USER appuser
USER appuser

0 comments on commit 4f71b30

Please sign in to comment.