Skip to content

Commit

Permalink
Slim down image to 15 MB
Browse files Browse the repository at this point in the history
Base the image off Alpine to get another nice size saving:

    REPOSITORY                             TAG         IMAGE ID      CREATED        SIZE
    localhost/inotify                      alpine      0346632c3067  4 hours ago    15 MB
    localhost/inotify                      debian      2d99b1b27626  4 hours ago    94 MB

Functionality remains the same.
  • Loading branch information
jchristgit committed Jun 10, 2024
1 parent 60aef54 commit f9f566d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
FROM debian:12-slim
FROM alpine:3.20

# Add inotify-tools for inotifywait
#
# We also install curl as scripts using this image often
# call HTTP webhooks.
RUN apt-get -y update && apt-get install -y \
curl \
inotify-tools \
jq \
&& apt autoclean \
&& rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache curl inotify-tools jq

# Set our working directory
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion monitor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

set -exo pipefail

Expand Down

0 comments on commit f9f566d

Please sign in to comment.