Alpine image with fswatch compiled and installed

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:

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 \
&& 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/* /usr/local/lib/

Hope someone find it useful! Bests!

1 Like