From efec6080ccfc28fb244efbec61acfcf7a928adcf Mon Sep 17 00:00:00 2001 From: 3_1_3_u Date: Fri, 9 Feb 2018 01:55:45 +0200 Subject: [PATCH] Use Alpine based image for app (#208) --- app/Dockerfile | 22 ++++++++++++---------- app/entrypoint.sh | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index 45ce398..d1db9b3 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:16.04 +FROM alpine:3.6 # Some ENV variables ENV PATH="/mattermost/bin:${PATH}" @@ -8,15 +8,17 @@ ENV MM_VERSION=4.6.1 ARG edition=enterprise # Install some needed packages -RUN apt-get update \ - && apt-get -y --no-install-recommends install \ - curl \ - jq \ - netcat \ - ca-certificates \ - xmlsec1 \ - mime-support \ - && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin +RUN apk add --no-cache \ + ca-certificates \ + curl \ + jq \ + libc6-compat \ + libffi-dev \ + linux-headers \ + mailcap \ + netcat-openbsd \ + xmlsec-dev \ + && rm -rf /tmp/* # Get Mattermost RUN mkdir -p /mattermost/data \ diff --git a/app/entrypoint.sh b/app/entrypoint.sh index 88e3143..293055c 100755 --- a/app/entrypoint.sh +++ b/app/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Function to generate a random salt generate_salt() {