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
watchful-openresty
Commits
de4be342
Commit
de4be342
authored
Jun 16, 2016
by
Michał 'rysiek' Woźniak
Browse files
INSTALL_PACKAGES supported now
parent
ecce3b97
Changes
1
Hide 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 @
de4be342
...
...
@@ -54,6 +54,15 @@ RUN case $NGINX_PACKAGE in \
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get update
&&
\
apt-get
install
-y
ca-certificates
"
${
NGINX_PACKAGE
}
"
=
"
${
NGINX_VERSION
}
"
inotify-tools
&&
\
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
# forward request and error logs to docker log collector
RUN
ln
-sf
/dev/stdout /var/log/nginx/access.log
...
...
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