Merge pull request #15 from freqtrade:fix_node_modules_perm

fix docker dev container node_modules binding
This commit is contained in:
Matthias 2020-06-05 11:41:17 +02:00 committed by GitHub
commit 6e0ac373d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 5 deletions

View File

@ -22,17 +22,22 @@ RUN apt-get update \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN yarn global add @vue/cli
USER $USERNAME
ENV HOME /home/$USERNAME
RUN mkdir -p $HOME/frequi/node_modules
WORKDIR $HOME/frequi
COPY ./package.json .
# install dependencies
RUN yarn install
RUN yarn global add @vue/cli
USER $USERNAME
EXPOSE 8080

View File

@ -8,8 +8,8 @@ services:
image: freqtradeorg/frequi:dev
user: dev
volumes:
- ../node_modules:/home/dev/frequi/node_modules
- ../:/home/dev/frequi
- frequi-node-modules:/home/dev/frequi/node_modules
command: /bin/sh -c "while sleep 1000; do :; done"
networks:
- frequi
@ -17,4 +17,7 @@ services:
- 8080:8080
networks:
frequi:
frequi:
volumes:
frequi-node-modules: