Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
gitlab-jekyll-runner
Commits
0ce05a9e
Commit
0ce05a9e
authored
Feb 22, 2019
by
Michał 'rysiek' Woźniak
Browse files
ADD_REPOSITORY_KEYS and ADD_REPOSITORIES support added
parent
0f0a5dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
Dockerfile
Dockerfile
+21
-0
No files found.
Dockerfile
View file @
0ce05a9e
...
...
@@ -15,6 +15,27 @@ ENV LANGUAGE en_US:en
ENV
LC_ALL en_US.UTF-8
RUN
locale-gen en_US.UTF-8
# adding repository keys
ARG
ADD_REPOSITORY_KEYS=
RUN if
[
"
$ADD_REPOSITORY_KEYS
"
!=
""
]
;
then
\
DEBIAN_FRONTEND
=
noninteractive apt-get
-q
update
&&
\
apt-get
-q
-y
--no-install-recommends
install
\
gnupg
\
apt-transport-https
\
ca-certificates
\
lsb-release
&&
\
apt-get
-q
clean
&&
\
apt-get
-q
-y
autoremove
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
echo
"
$ADD_REPOSITORY_KEYS
"
|
sed
-e
's/^[[:space:]]*//'
| apt-key add -
;
\
fi
# adding repositories
ARG
ADD_REPOSITORIES=
RUN if
[
"
$ADD_REPOSITORIES
"
!=
""
]
;
then
\
echo
"
$ADD_REPOSITORIES
"
|
sed
-e
's/^[[:space:]]*//'
>
/etc/apt/sources.list.d/added-from-docker-build-arg.list
;
\
fi
# Ruby and requirements
RUN
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment