Skip to content

Commit

Permalink
Merge pull request #12 from ScilifelabDataCentre/dockerfile_branch
Browse files Browse the repository at this point in the history
Added chown of /tmp for node user in Dockerfile
  • Loading branch information
SevLG authored Jan 11, 2024
2 parents eb0e9e0 + 63700a6 commit 4733029
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
RUN chown -R node:node /app
RUN chown -R node:node /usr
RUN chown -R node:node /tmp
USER node
# Cache and Install dependencies
COPY ./react-app/package.json .
COPY ./react-app/package-lock.json .
COPY --chown=node:node ./react-app/package.json .
COPY --chown=node:node ./react-app/package-lock.json .
RUN npm ci
RUN npm install react-scripts -g
# Copy app files
COPY ./react-app/ .
COPY --chown=node:node ./react-app/ .
RUN npm run build

# production environment
Expand Down

0 comments on commit 4733029

Please sign in to comment.