summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-10-06 19:33:36 +0300
committerLauri Ojansivu <x@xet7.org>2017-10-06 19:33:36 +0300
commit23ff08382a7c7f947d36f8989eaac5b0825809eb (patch)
treea3f97a437652e141a3c92019e1504cc765f0cc55 /Dockerfile
parentb34c62bbc7f614b32570425c260ed79e02eb3336 (diff)
downloadwekan-23ff08382a7c7f947d36f8989eaac5b0825809eb.tar.gz
wekan-23ff08382a7c7f947d36f8989eaac5b0825809eb.tar.bz2
wekan-23ff08382a7c7f947d36f8989eaac5b0825809eb.zip
Dockerfile base image to debian:jessie-slim
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index fa77877d..ab0670db 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM bitnami/minideb:jessie
+FROM debian:jessie-slim
MAINTAINER wekan
# Declare Arguments
@@ -31,7 +31,7 @@ RUN \
useradd --user-group --system --home-dir /home/wekan wekan && \
\
# OS dependencies
- install_packages ${BUILD_DEPS} && \
+ apt-get update -y && apt-get dist-upgrade -y && apt-get install -y --no-install-recommends ${BUILD_DEPS} && \
\
# Gosu installation
GOSU_ARCHITECTURE="$(dpkg --print-architecture | awk -F- '{ print $NF }')" && \
@@ -124,6 +124,9 @@ RUN \
mv /home/wekan/app_build/bundle /build && \
\
# Cleanup
+ apt-get remove --purge -y ${BUILD_DEPS} && \
+ apt-get autoremove -y && \
+ rm -R /var/lib/apt/lists/* && \
rm -R /home/wekan/.meteor && \
rm -R /home/wekan/app && \
rm -R /home/wekan/app_build && \