Skip to content

Commit f055506

Browse files
author
Matthew Fisher
committed
Merge pull request #2173 from aledbf/registry_use_docker_cache
fix(registry): use docker cache
2 parents 4002753 + 3af7364 commit f055506

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

registry/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ ENV SETTINGS_FLAVOR deis
2020
WORKDIR /app
2121
CMD ["/app/bin/boot"]
2222
EXPOSE 5000
23-
ADD . /app
2423

25-
RUN /app/build.sh
24+
ADD build.sh /app/build.sh
25+
26+
RUN DOCKER_BUILD=true /app/build.sh
27+
28+
ADD . /app

registry/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/usr/bin/env bash
22

3+
if [[ -z $DOCKER_BUILD ]]; then
4+
echo
5+
echo "Note: this script is intended for use by the Dockerfile and not as a way to build the registry locally"
6+
echo
7+
exit 1
8+
fi
9+
310
DEBIAN_FRONTEND=noninteractive
411

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

0 commit comments

Comments
 (0)