Improve dockerfile to be slimmable
Change-Id: I1c0f62eca046ebc38f648ac8d650e286e810149b
diff --git a/.gitignore b/.gitignore
index d0db035..5818b15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,4 +46,5 @@
!.dockerignore
/npm-debug.log
/package-lock.json
-/kalamar.code-workspace
\ No newline at end of file
+/kalamar.code-workspace
+slim.report.json
\ No newline at end of file
diff --git a/Changes b/Changes
index 2d6e43c..4abafc8 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
0.52 2023-11-29
- Update Piwik dependency to point to matomo.js. (diewald)
- Add addon to title and description. (diewald)
+ - Improve Dockerfile to enable docker-slim. (diewald)
0.51 2023-09-27
- Support defined log file in configuration. (diewald)
diff --git a/Dockerfile b/Dockerfile
index 3652653..faa4da1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,7 +16,6 @@
grunt && \
rm -rf node_modules \
dev/css \
- dev/demo \
dev/font \
dev/img \
dev/js/bench \
@@ -62,12 +61,10 @@
RUN apk del git \
perl-dev \
g++ \
- make \
wget \
curl && \
rm -rf /root/.cpanm \
- /usr/local/share/man && \
- rm -rf t
+ /usr/local/share/man
RUN addgroup -S korap && \
adduser -S kalamar -G korap && \
@@ -109,13 +106,11 @@
perl-dev \
perl-doc \
g++ \
- make \
wget \
libxml2-dev \
curl && \
rm -rf /root/.cpanm \
- /usr/local/share/man && \
- rm -rf t
+ /usr/local/share/man
RUN addgroup -S korap && \
@@ -142,3 +137,10 @@
# docker build -f Dockerfile -t korap/kalamar:x.xx-conv --target kalamar-convert .
# docker build -f Dockerfile -t korap/kalamar:x.xx --target kalamar .
+
+# Slimming (https://github.com/slimtoolkit/slim):
+# slim build --http-probe=true \
+# --exec="perl Makefile.PL && make test" \
+# --include-workdir=true \
+# --tag korap/kalamar:x.xx-conv-slim \
+# korap/kalamar:x.xx-conv
\ No newline at end of file