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/* && rm -rf /var/lib/apt/lists/*
ENV HOME /home/$USERNAME ENV HOME /home/$USERNAME
USER $USERNAME
WORKDIR $HOME
EXPOSE 8080
# install dependencies
RUN yarn global add @vue/cli
RUN yarn install
WORKDIR $HOME/frequi 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 FROM dev as vscode
WORKDIR $HOME WORKDIR $HOME

View File

@ -2,11 +2,13 @@ version: '3.4'
services: services:
web: web:
build: build:
context: . context: ..
target: dev target: dev
dockerfile: .devcontainer/Dockerfile
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
command: /bin/sh -c "while sleep 1000; do :; done" command: /bin/sh -c "while sleep 1000; do :; done"
networks: networks: