Skip to content

Commit

Permalink
Merge pull request deis#2173 from aledbf/registry_use_docker_cache
Browse files Browse the repository at this point in the history
fix(registry): use docker cache
  • Loading branch information
Matthew Fisher committed Oct 21, 2014
2 parents 4002753 + 3af7364 commit f055506
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions registry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ ENV SETTINGS_FLAVOR deis
WORKDIR /app
CMD ["/app/bin/boot"]
EXPOSE 5000
ADD . /app

RUN /app/build.sh
ADD build.sh /app/build.sh

RUN DOCKER_BUILD=true /app/build.sh

ADD . /app
7 changes: 7 additions & 0 deletions registry/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/usr/bin/env bash

if [[ -z $DOCKER_BUILD ]]; then
echo
echo "Note: this script is intended for use by the Dockerfile and not as a way to build the registry locally"
echo
exit 1
fi

DEBIAN_FRONTEND=noninteractive

sed -i 's/main$/main universe/' /etc/apt/sources.list
Expand Down

0 comments on commit f055506

Please sign in to comment.