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-runner
Commits
d91a35ee
Commit
d91a35ee
authored
Mar 16, 2016
by
Michał 'rysiek' Woźniak
Browse files
support for installing packages via docker build args added
parent
89e95278
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Dockerfile
Dockerfile
+9
-0
No files found.
Dockerfile
View file @
d91a35ee
...
...
@@ -23,6 +23,15 @@ RUN apt-get update && \
nodejs
&&
\
rm
-rf
/var/lib/apt/lists/
*
# we might need to install some packages, but doing this in the entrypoint doesn't make any sense
ARG
INSTALL_PACKAGES=
RUN if
[
"
$INSTALL_PACKAGES
"
!=
""
]
;
then
\
export
DEBIAN_FRONTEND
=
noninteractive
&&
apt-get update
&&
apt-get
install
-y
\
$INSTALL_PACKAGES
\
--no-install-recommends
&&
\
rm
-rf
/var/lib/apt/lists/
*
;
\
fi
# Jekyll
RUN
gem2.0
install
jekyll bundle
...
...
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