diff --git a/Dockerfile.storybook b/Dockerfile.storybook index 03d78bb5310..fe96a802bab 100644 --- a/Dockerfile.storybook +++ b/Dockerfile.storybook @@ -6,13 +6,9 @@ ARG CURRENT_GID # Use root user to perform privileged operations USER root -# Create directories for cypress-visual-* artifacts to be mounted -RUN mkdir -p /usr/src/app/cypress-visual-report && \ - mkdir -p /usr/src/app/cypress-visual-screenshots && \ - # Set permissions - chown -R $CURRENT_UID:$CURRENT_GID /home/node && \ - chown -R $CURRENT_UID:$CURRENT_GID /usr/src/app && \ - chmod -R 777 /usr/src/app/cypress-visual-report /usr/src/app/cypress-visual-screenshots +# Set permissions +RUN chown -R $CURRENT_UID:$CURRENT_GID /home/node && \ + chown -R $CURRENT_UID:$CURRENT_GID /usr/src/app # Set the working directory to the app directory WORKDIR /usr/src/app diff --git a/docker-compose.storybook.yml b/docker-compose.storybook.yml index 65746b62efa..bb01160e0d5 100644 --- a/docker-compose.storybook.yml +++ b/docker-compose.storybook.yml @@ -8,9 +8,6 @@ services: args: CURRENT_UID: ${CURRENT_UID} CURRENT_GID: ${CURRENT_GID} - volumes: - - ./cypress-visual-screenshots:/usr/src/app/cypress-visual-screenshots:delegated - - ./cypress-visual-report:/usr/src/app/cypress-visual-report:delegated ports: - '65200:65200' env_file: .env