From e20b6d016a3bec817460ab1b7ddbb804a66cf0cc Mon Sep 17 00:00:00 2001 From: UnaffiliatedCode <56409830+UnaffiliatedCode@users.noreply.github.com> Date: Mon, 18 Apr 2022 12:30:31 -0400 Subject: [PATCH] Update Dockerfile Added explicit permissions to the tests sub-folder since the folder hasn't been created when the image has been initialized. This can cause permission issues. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a3f86f4..d7978cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -119,9 +119,12 @@ RUN rfbrowser init \ # These folders are writeable by anyone, to ensure the user can be changed on the command line. RUN mkdir -p ${ROBOT_REPORTS_DIR} \ && mkdir -p ${ROBOT_WORK_DIR} \ + && mkdir -p ${ROBOT_TESTS_DIR} \ && chown ${ROBOT_UID}:${ROBOT_GID} ${ROBOT_REPORTS_DIR} \ && chown ${ROBOT_UID}:${ROBOT_GID} ${ROBOT_WORK_DIR} \ - && chmod ugo+w ${ROBOT_REPORTS_DIR} ${ROBOT_WORK_DIR} + && chown ${ROBOT_UID}:${ROBOT_GID} ${ROBOT_TESTS_DIR} \ + && chmod ugo+w ${ROBOT_REPORTS_DIR} ${ROBOT_WORK_DIR} \ + && chmod ugo+w ${ROBOT_REPORTS_DIR} ${ROBOT_TESTS_DIR} # Allow any user to write logs RUN chmod ugo+w /var/log \