Skip to content

Commit

Permalink
Add another docker layer for dependencies (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Jul 18, 2017
1 parent b045013 commit b1699fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
- run:
name: Pull latest docker image
command: |
docker pull lynckia/licode:latest
docker pull lynckia/licode:develop
- run:
name: Build docker image
command: |
echo Building lynckia/licode:develop
docker build --cache-from lynckia/licode:latest -t lynckia/licode:develop .
docker build --cache-from lynckia/licode:develop -t lynckia/licode:develop .
- run:
name: Lint Erizo
Expand Down
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,22 @@ WORKDIR /opt
# Download latest version of the code and install dependencies
RUN apt-get update && apt-get install -y git wget curl

COPY .nvmrc package.json /opt/licode/

COPY scripts/installUbuntuDeps.sh scripts/checkNvm.sh /opt/licode/scripts/

WORKDIR /opt/licode/scripts

RUN ./installUbuntuDeps.sh --cleanup --fast

WORKDIR /opt

COPY . /opt/licode

# Clone and install licode
WORKDIR /opt/licode/scripts

RUN ./installUbuntuDeps.sh --cleanup --fast && \
./installErizo.sh -feacs && \
RUN ./installErizo.sh -feacs && \
./../nuve/installNuve.sh && \
./installBasicExample.sh

Expand Down

0 comments on commit b1699fd

Please sign in to comment.