fix package json not copied to container

This commit is contained in:
gaugau3000 2020-06-04 16:49:01 +00:00
parent 55b5d8681b
commit 595ce28224
2 changed files with 13 additions and 9 deletions

View File

@ -23,17 +23,19 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
ENV HOME /home/$USERNAME
USER $USERNAME
WORKDIR $HOME
EXPOSE 8080
# install dependencies
RUN yarn global add @vue/cli
RUN yarn install
WORKDIR $HOME/frequi
COPY ./package.json .
# install dependencies
RUN yarn install
RUN yarn global add @vue/cli
USER $USERNAME
EXPOSE 8080
FROM dev as vscode
WORKDIR $HOME

View File

@ -2,11 +2,13 @@ version: '3.4'
services:
web:
build:
context: .
context: ..
target: dev
dockerfile: .devcontainer/Dockerfile
image: freqtradeorg/frequi:dev
user: dev
volumes:
- ../node_modules:/home/dev/frequi/node_modules
- ../:/home/dev/frequi
command: /bin/sh -c "while sleep 1000; do :; done"
networks: