Use main yarn.lock when building oracle docker

This commit is contained in:
rzadp 2019-05-23 11:11:00 +02:00
parent 97f80dc95a
commit ef0b9662d2
3 changed files with 22 additions and 6863 deletions

@ -7,10 +7,13 @@ RUN apt-get install -y libc6-dev-i386
RUN apt-get install -y wget RUN apt-get install -y wget
RUN apt-get clean RUN apt-get clean
WORKDIR /bridge WORKDIR /mono
COPY package.json . COPY package.json .
COPY package-lock.json . COPY contracts/package.json ./contracts/
RUN npm install COPY oracle/package.json ./oracle/
COPY . . COPY yarn.lock .
RUN yarn install
COPY ./oracle ./oracle
WORKDIR /mono/oracle
CMD echo "To start a bridge process run:" \ CMD echo "To start a bridge process run:" \
"VALIDATOR_ADDRESS=<validator address> VALIDATOR_ADDRESS_PRIVATE_KEY=<validator address private key> docker-compose up -d --build" "VALIDATOR_ADDRESS=<validator address> VALIDATOR_ADDRESS_PRIVATE_KEY=<validator address private key> docker-compose up -d --build"

@ -31,7 +31,9 @@ services:
bridge_request: bridge_request:
cpus: 0.1 cpus: 0.1
mem_limit: 500m mem_limit: 500m
build: . build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true' command: 'true'
env_file: ./.env env_file: ./.env
environment: environment:
@ -45,7 +47,9 @@ services:
bridge_collected: bridge_collected:
cpus: 0.1 cpus: 0.1
mem_limit: 500m mem_limit: 500m
build: . build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true' command: 'true'
env_file: ./.env env_file: ./.env
environment: environment:
@ -59,7 +63,9 @@ services:
bridge_affirmation: bridge_affirmation:
cpus: 0.1 cpus: 0.1
mem_limit: 500m mem_limit: 500m
build: . build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true' command: 'true'
env_file: ./.env env_file: ./.env
environment: environment:
@ -73,7 +79,9 @@ services:
bridge_senderhome: bridge_senderhome:
cpus: 0.1 cpus: 0.1
mem_limit: 500m mem_limit: 500m
build: . build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true' command: 'true'
env_file: ./.env env_file: ./.env
environment: environment:
@ -87,7 +95,9 @@ services:
bridge_senderforeign: bridge_senderforeign:
cpus: 0.1 cpus: 0.1
mem_limit: 500m mem_limit: 500m
build: . build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true' command: 'true'
env_file: ./.env env_file: ./.env
environment: environment:

6854
oracle/package-lock.json generated

File diff suppressed because it is too large Load Diff