Skip to content

Commit

Permalink
rdrf #2260 back to running node as root..
Browse files Browse the repository at this point in the history
  • Loading branch information
id2359 committed Nov 4, 2022
1 parent 282ca9d commit 0cfa8e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions Dockerfile-node
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@ COPY docker-entrypoint-node.sh /app/docker-entrypoint-node.sh

VOLUME ["/data"]

ENV YARN_CACHE_FOLDER /frontendbuild/yarn_cache
RUN mkdir -p /frontendbuild/yarn_cache
RUN mkdir -p /frontendbuild/build
RUN chown -R node:node /frontendbuild
ENV HOME /frontendbuild
USER node
WORKDIR /app/rdrf/rdrf/frontend
ENV HOME /data
WORKDIR /data

ENTRYPOINT ["/app/docker-entrypoint-node.sh"]
CMD ["build"]
4 changes: 2 additions & 2 deletions docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ services:
working_dir: /data/app/rdrf/rdrf/frontend
command: build
environment:
YARN_CACHE_FOLDER: /frontendbuild/yarn_cache
YARN_CACHE_FOLDER: /opt/yarn_cache
volumes:
- ./build:/data
- ./yarn_cache:/frontendbuild/yarn_cache
- ./yarn_cache:/opt/yarn_cache


dev:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ services:
command: "watch"
working_dir: /app/rdrf/rdrf/frontend
environment:
YARN_CACHE_FOLDER: /frontendbuild/yarn_cache
YARN_CACHE_FOLDER: /opt/yarn_cache
volumes:
- ./yarn_cache:/data/yarn_cache
- ./yarn_cache:/opt/yarn_cache
volumes_from:
- datadev

Expand Down

0 comments on commit 0cfa8e8

Please sign in to comment.