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
4662b6b4
Commit
4662b6b4
authored
Aug 29, 2017
by
Michał 'rysiek' Woźniak
Browse files
we have to be able to install lua modules too
parent
a2a0ff3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
Dockerfile
Dockerfile
+18
-3
No files found.
Dockerfile
View file @
4662b6b4
...
...
@@ -21,13 +21,28 @@ FROM openresty/openresty:stretch
# based on: https://git.occrp.org/libre/watchful-nginx
MAINTAINER
Michał "rysiek" Woźniak <rysiek@occrp.org>
# we might need to install some packages, but doing this in the entrypoint doesn't make any sense
# we might need to install some packages or Lua modules,
# but doing this in the entrypoint doesn't make any sense
ARG
INSTALL_LUA_MODULES
ARG
INSTALL_PACKAGES
RUN
export
DEBIAN_FRONTEND
=
noninteractive
&&
apt-get update
&&
apt-get
install
-y
\
# packages install
RUN
export
DEBIAN_FRONTEND
=
noninteractive
;
\
# if we are to install Lua modules later, we need luarocks
if [ "$INSTALL_LUA_MODULES" != "" ]; then \
export INSTALL_PACKAGES="$INSTALL_PACKAGES luarocks"; \
fi; \
# get on with the show
apt-get update && apt-get install -y \
$INSTALL_PACKAGES ca-certificates inotify-tools gnupg2 \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# Lua modules install
RUN for
LUAROCK
in
$INSTALL_LUA_MODULES
;
do
\
luarocks
install
$LUAROCK
;
\
done
;
COPY
run.sh /run.sh
RUN
chmod
+x /run.sh
...
...
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