switched to slim/alpine images

This commit is contained in:
André Bauer 2017-01-11 20:34:49 +01:00
parent fa1a8a7806
commit d1be819000
6 changed files with 13 additions and 5 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
docker-compose-test.yml

View File

@ -1,4 +1,4 @@
FROM elasticsearch
FROM elasticsearch:alpine
MAINTAINER Zammad <info@zammad.org>
ARG BUILD_DATE

View File

@ -1,4 +1,4 @@
FROM nginx
FROM nginx:alpine
MAINTAINER Zammad <info@zammad.org>
ARG BUILD_DATE

View File

@ -1,4 +1,4 @@
FROM postgres
FROM postgres:alpine
MAINTAINER Zammad <info@zammad.org>
ARG BUILD_DATE

View File

@ -1,4 +1,4 @@
FROM ruby:2.3.1
FROM ruby:2.3.1-slim
MAINTAINER Zammad <info@zammad.org>
ARG BUILD_DATE
@ -23,10 +23,18 @@ LABEL org.label-schema.build-date="$BUILD_DATE" \
EXPOSE 3000
EXPOSE 6042
# install dependencies
RUN apt-get update && apt-get install -y build-essential git-core libpq5 libpq-dev
# install zammad
COPY install-zammad.sh /tmp
RUN chmod +x /tmp/install-zammad.sh;/bin/bash -l -c /tmp/install-zammad.sh
# cleanup
RUN apt-get remove --purge -y git-core build-essential bzip2 ca-certificates libffi-dev libgdbm3 libssl-dev procps zlib1g-dev && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# docker init
COPY docker-entrypoint.sh /
RUN chown zammad:zammad /docker-entrypoint.sh;chmod +x /docker-entrypoint.sh

View File

@ -3,5 +3,4 @@
# build hooks config
#
DOCKER_REPO="zammad/zammad-docker-compose"
DOCKER_IMAGES="elasticsearch nginx postgresql zammad"