Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1207 from mattlorimor/patch-1
Browse files Browse the repository at this point in the history
Fix pulling Dart in the nginx Dockerfile
  • Loading branch information
mikegrima authored Jun 13, 2019
2 parents ec7baac + f025bfc commit 6fb691c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docker/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,20 @@ MAINTAINER Netflix Open Source Development <[email protected]>

ENV SECURITY_MONKEY_VERSION=v1.1.3
RUN apt-get update &&\
apt-get install -y curl git sudo apt-transport-https gnupg &&\
curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - &&\
curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \
apt-get update &&\
apt-get install -y -q dart=1.24.* &&\
rm -rf /var/lib/apt/lists/*
apt-get install -y curl git sudo unzip
RUN curl -s https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.3/sdk/dartsdk-linux-x64-release.zip > dartsdk.zip
RUN unzip -qq /dartsdk.zip -d /opt/google
RUN rm /dartsdk.zip
RUN mv /opt/google/dart-sdk* /opt/google/dart

RUN cd /usr/local/src &&\
mkdir -p security_monkey

COPY dart /usr/local/src/security_monkey/dart

RUN cd /usr/local/src/security_monkey/dart &&\
/usr/lib/dart/bin/pub get && \
/usr/lib/dart/bin/pub build && \
/opt/google/dart/bin/pub get && \
/opt/google/dart/bin/pub build && \
/bin/mkdir -p /usr/local/src/security_monkey/security_monkey/static/ && \
/bin/cp -R /usr/local/src/security_monkey/dart/build/web/* /usr/local/src/security_monkey/security_monkey/static/ && \
rm -r /usr/local/src/security_monkey/dart/build
Expand Down

0 comments on commit 6fb691c

Please sign in to comment.