mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-24 20:15:15 +00:00
fix node_modules empty when binding
This commit is contained in:
parent
60545255d8
commit
50f6a2e6ae
|
@ -22,17 +22,22 @@ RUN apt-get update \
|
||||||
&& apt-get clean -y \
|
&& apt-get clean -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
RUN yarn global add @vue/cli
|
||||||
|
|
||||||
|
USER $USERNAME
|
||||||
|
|
||||||
ENV HOME /home/$USERNAME
|
ENV HOME /home/$USERNAME
|
||||||
|
|
||||||
|
RUN mkdir -p $HOME/frequi/node_modules
|
||||||
|
|
||||||
WORKDIR $HOME/frequi
|
WORKDIR $HOME/frequi
|
||||||
|
|
||||||
COPY ./package.json .
|
COPY ./package.json .
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
RUN yarn global add @vue/cli
|
|
||||||
|
|
||||||
USER $USERNAME
|
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ services:
|
||||||
image: freqtradeorg/frequi:dev
|
image: freqtradeorg/frequi:dev
|
||||||
user: dev
|
user: dev
|
||||||
volumes:
|
volumes:
|
||||||
- ../node_modules:/home/dev/frequi/node_modules
|
|
||||||
- ../:/home/dev/frequi
|
- ../:/home/dev/frequi
|
||||||
|
- frequi-node-modules:/home/dev/frequi/node_modules
|
||||||
command: /bin/sh -c "while sleep 1000; do :; done"
|
command: /bin/sh -c "while sleep 1000; do :; done"
|
||||||
networks:
|
networks:
|
||||||
- frequi
|
- frequi
|
||||||
|
@ -17,4 +17,7 @@ services:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
frequi:
|
frequi:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
frequi-node-modules:
|
Loading…
Reference in New Issue
Block a user