Skip to content

Commit

Permalink
adding permission to the web container creation
Browse files Browse the repository at this point in the history
  • Loading branch information
and-lucas-kelly committed Aug 23, 2021
1 parent 9495b51 commit 05b176d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,24 @@ ARG GIT_COMMIT_HASH
ENV GIT_COMMIT_HASH ${GIT_COMMIT_HASH}
CMD /filebeat/filebeat -c /filebeat/filebeat.yml & bundle exec rails server

# 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 touch ${APP_HOME}/log/production.log

RUN chown -hR appuser:appgroup ${APP_HOME}/log/production.log

RUN chmod 777 ${APP_HOME}/log/production.log

USER appuser


# ------------------------------------------------------------------------------
# shellcheck
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 05b176d

Please sign in to comment.