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 # Some ENV variables
ENV PATH="/mattermost/bin:${PATH}" ENV PATH="/mattermost/bin:${PATH}"
@ -8,15 +8,17 @@ ENV MM_VERSION=4.6.1
ARG edition=enterprise ARG edition=enterprise
# Install some needed packages # Install some needed packages
RUN apt-get update \ RUN apk add --no-cache \
&& apt-get -y --no-install-recommends install \ ca-certificates \
curl \ curl \
jq \ jq \
netcat \ libc6-compat \
ca-certificates \ libffi-dev \
xmlsec1 \ linux-headers \
mime-support \ mailcap \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin netcat-openbsd \
xmlsec-dev \
&& rm -rf /tmp/*
# Get Mattermost # Get Mattermost
RUN mkdir -p /mattermost/data \ RUN mkdir -p /mattermost/data \

View File

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