File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,38 @@ ARG DOCKER_IMAGE_VERSION=unknown
13
13
# Define software versions.
14
14
ARG OPENRESTY_VERSION=1.17.8.1
15
15
ARG NGINX_PROXY_MANAGER_VERSION=2.6.1
16
+ ARG WATCH_VERSION=0.3.1
16
17
17
18
# Define software download URLs.
18
19
ARG OPENRESTY_URL=https://openresty.org/download/openresty-${OPENRESTY_VERSION}.tar.gz
19
20
ARG NGINX_PROXY_MANAGER_URL=https://github.com/jc21/nginx-proxy-manager/archive/v${NGINX_PROXY_MANAGER_VERSION}.tar.gz
21
+ ARG WATCH_URL=https://github.com/tj/watch/archive/${WATCH_VERSION}.tar.gz
20
22
21
23
# Define working directory.
22
24
WORKDIR /tmp
23
25
26
+ # Build and install the watch binary.
27
+ RUN \
28
+ add-pkg --virtual build-dependencies \
29
+ build-base \
30
+ curl \
31
+ && \
32
+ # Download.
33
+ echo "Downloading watch..." && \
34
+ mkdir watch && \
35
+ curl -# -L ${WATCH_URL} | tar xz --strip 1 -C watch && \
36
+ # Compile.
37
+ echo "Compiling watch..." && \
38
+ cd watch && \
39
+ make && \
40
+ # Install.
41
+ echo "Installing watch..." && \
42
+ make install && \
43
+ strip /usr/local/bin/watch && \
44
+ # Cleanup.
45
+ del-pkg build-dependencies && \
46
+ rm -rf /tmp/* /tmp/.[!.]*
47
+
24
48
# Build and install OpenResty (nginx).
25
49
RUN \
26
50
add-pkg --virtual build-dependencies \
You can’t perform that action at this time.
0 commit comments