Use Alpine based image for app (#208)
This commit is contained in:
parent
563aadce3e
commit
efec6080cc
@ -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 \
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
# Function to generate a random salt
|
||||
generate_salt() {
|
||||
|
Reference in New Issue
Block a user