Skip to content

Commit e12e576

Browse files
committed
fix: do not run 'npx gatsby new site' as root
1 parent 6d42392 commit e12e576

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

www/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ FROM taitounited/cypress:3.2.0-node10
55
ARG SERVICE_DIR=.
66
ENV NODE_ENV development
77

8+
RUN mkdir /service && chown node:node /service
9+
810
WORKDIR /service
911
COPY ${SERVICE_DIR}/install.sh \
1012
${SERVICE_DIR}/package* \

www/Dockerfile.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ENV BUILD_VERSION ${BUILD_VERSION}
1010
ENV NODE_ENV development
1111
ENV APP_SENTRY_PUBLIC_DSN #sentryPublicDSN
1212

13+
RUN mkdir /service && chown node:node /service
14+
1315
WORKDIR /service
1416
COPY ${SERVICE_DIR}/*.sh \
1517
${SERVICE_DIR}/package* \

www/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ Start containers, and start a shell inside the www Docker container:
1212
taito start
1313
taito shell:www
1414

15-
*FOR GATSBY ONLY:* Create a new Gatsby site based on one of the [starters](https://www.gatsbyjs.org/starters?v=2):
15+
*FOR GATSBY ONLY:* Create a new Gatsby site based on one of the [starters](https://www.gatsbyjs.org/starters?v=2) (NOTE: Select 'npm' as package manager and ignore the 'git commit' error):
1616

17+
su node
1718
npx gatsby new site https://github.com/sarasate/gate
1819
rm -rf site/.git
1920
exit
21+
exit
2022

2123
*FOR GATSBY ONLY:* Edit some files:
2224

0 commit comments

Comments
 (0)