Browse Source

Dockerfile base image from debian:8.9 to bitnami/minideb:jessie

Lauri Ojansivu 7 years ago
parent
commit
b34c62bbc7
1 changed files with 2 additions and 5 deletions
  1. 2 5
      Dockerfile

+ 2 - 5
Dockerfile

@@ -1,4 +1,4 @@
-FROM debian:8.9
+FROM bitnami/minideb:jessie
 MAINTAINER wekan
 
 # Declare Arguments
@@ -31,7 +31,7 @@ RUN \
     useradd --user-group --system --home-dir /home/wekan wekan && \
     \
     # OS dependencies
-    apt-get update -y && apt-get dist-upgrade -y && apt-get install -y --no-install-recommends ${BUILD_DEPS} && \
+    install_packages ${BUILD_DEPS} && \
     \
     # Gosu installation
     GOSU_ARCHITECTURE="$(dpkg --print-architecture | awk -F- '{ print $NF }')" && \
@@ -124,9 +124,6 @@ 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 && \