|
@@ -3,13 +3,15 @@ RUN apk add --no-cache git
|
|
|
USER nobody
|
|
|
|
|
|
ARG MONITOR_VERSION=1deec402b9b6323a964381819b199300259bb584
|
|
|
-RUN git clone https://github.com/andrewjfreyer/monitor /tmp/monitor \
|
|
|
- && git -C /tmp/monitor checkout $MONITOR_VERSION
|
|
|
+RUN git clone https://github.com/andrewjfreyer/monitor /tmp/monitor
|
|
|
+WORKDIR /tmp/monitor
|
|
|
+RUN git checkout $MONITOR_VERSION \
|
|
|
+ && rm -r .git .gitignore
|
|
|
|
|
|
|
|
|
USER 0
|
|
|
-RUN chown -R 0:0 /tmp/monitor \
|
|
|
- && chmod a+rX -R -c /tmp/monitor
|
|
|
+RUN chown -R 0:0 . \
|
|
|
+ && chmod a+rX -R -c .
|
|
|
|
|
|
FROM alpine:3.11
|
|
|
RUN apk add --no-cache \
|