Optimize docker configuration
Change-Id: I435e8e21f1088cf1688bc197bd3eab3bcc94da6e
diff --git a/.dockerignore b/.dockerignore
index b20b3cf..b52276f 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -11,4 +11,7 @@
!/script
!/t
!/templates
-!.dockerignore
\ No newline at end of file
+!.dockerignore
+/templates/announcement.html.ep
+/templates/custom
+/lib/Kalamar/Plugin/Announcements.pm
diff --git a/Dockerfile b/Dockerfile
index 260c5cc..2eff6b4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,7 +18,12 @@
dev/demo \
dev/font \
dev/img \
- dev/scss
+ dev/js/bench \
+ dev/js/runner \
+ dev/js/spec \
+ dev/scss && \
+ rm package-lock.json \
+ dev/robots.txt
# Use alpine linux as base image
FROM alpine:latest
@@ -54,7 +59,8 @@
wget \
curl && \
rm -rf /root/.cpanm \
- /usr/local/share/man
+ /usr/local/share/man && \
+ rm -rf t
RUN addgroup -S korap && \
adduser -S kalamar -G korap && \