Skip to content

Commit 73a551a

Browse files
committed
Allow using alternate apt repository
1 parent 0cacfb7 commit 73a551a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
FROM ubuntu:trusty
22

3+
ARG apt_repository="deb [arch=amd64] http://apt-mk.mirantis.com/trusty/ nightly extra"
4+
ARG apt_key_url="http://apt-mk.mirantis.com/public.gpg"
5+
36
## Common
47
ENV DEBIAN_FRONTEND noninteractive
58
RUN apt-get update && \
69
apt-get install -y wget && \
7-
echo "deb [arch=amd64] http://apt-mk.mirantis.com/trusty/ nightly extra" >> /etc/apt/sources.list.d/mirantis.list && \
8-
wget -O - http://apt-mk.mirantis.com/public.gpg | apt-key add -
10+
echo "$apt_repository" >> /etc/apt/sources.list.d/mirantis.list && \
11+
wget -O - $apt_key_url | apt-key add -
912

1013
RUN apt-get update && apt-get install -y python-flask-hello
1114

0 commit comments

Comments
 (0)