Use Alpine based image for app (#208)

This commit is contained in:
3_1_3_u 2018-02-09 01:55:45 +02:00 committed by Kyâne Pichou
parent 563aadce3e
commit efec6080cc
2 changed files with 13 additions and 11 deletions

View File

@ -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 \

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Function to generate a random salt
generate_salt() {