Hi there!
If anyone found it useful, I’ve uploaded to DockerHub an Alpine image, with fswatch compiled and installed, avoiding the need to do it manually every time, since the fswatch package it’s not available from ‘apk’
Here’s the link:
https://hub.docker.com/repository/docker/leandrocaplan/alpine-fswatch/general
Here’s the Dockerfile:
FROM alpine:latest AS fswatch
RUN apk add --no-cache autoconf alpine-sdk
RUN rm /usr/include/sys/inotify.h
RUN wget https://github.com/emcrisostomo/fswatch/releases/download/1.17.1/fswatch-1.17.1.tar.gz \
&& tar -xzvf fswatch-1.17.1.tar.gz && cd fswatch-1.17.1 && ./configure && make && make install && rm -rf /fswatch-1.17.1
FROM alpine:latest
COPY --from=fswatch /usr/local/bin/fswatch /usr/local/bin/fswatch
COPY --from=fswatch /usr/local/lib/libfswatch.so* /usr/local/lib/
Hope someone find it useful! Bests!
Leandro