Skip to content

Commit

Permalink
Revert volume mounts and permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverjwroberts authored and DeanElliott96 committed Feb 12, 2024
1 parent f0edf1f commit 226a61d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 3 additions & 7 deletions Dockerfile.storybook
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions docker-compose.storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 226a61d

Please sign in to comment.