This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1207 from mattlorimor/patch-1
Fix pulling Dart in the nginx Dockerfile
- Loading branch information
Showing
1 changed file
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|