1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-03-17 20:57:54 +02:00

Use --no-cache when installing packages

This commit is contained in:
Pierre Jaury 2017-02-12 16:46:30 +01:00
parent be5562620e
commit 0cf1d82dde
7 changed files with 10 additions and 23 deletions

View File

@ -1,11 +1,6 @@
FROM alpine
RUN apk add --update \
clamav \
rsyslog \
wget \
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache clamav rsyslog wget
COPY conf /etc/clamav
COPY start.sh /start.sh

View File

@ -1,11 +1,10 @@
FROM alpine:edge
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk add --update \
&& apk add --no-cache \
dovecot dovecot-sqlite dovecot-pigeonhole-plugin dovecot-pigeonhole-plugin-extdata \
rspamd-client@testing \
bash \
&& rm -rf /var/cache/apk/*
bash
COPY conf /etc/dovecot
COPY sieve /var/lib/dovecot

View File

@ -1,9 +1,6 @@
FROM python:alpine
RUN apk add --update \
fetchmail \
ca-certificates \
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache fetchmail ca-certificates
COPY fetchmail.py /fetchmail.py

View File

@ -1,6 +1,6 @@
FROM nginx:alpine
RUN apk add --update nginx-lua openssl && rm -rf /var/cache/apk/*
RUN apk add --no-cache nginx-lua openssl
COPY nginx.conf.default /etc/nginx/nginx.conf.default
COPY nginx.conf.fallback /etc/nginx/nginx.conf.fallback

View File

@ -1,6 +1,6 @@
FROM alpine
RUN apk add --update bash postfix postfix-sqlite postfix-pcre rsyslog && rm -rf /var/cache/apk/*
RUN apk add --no-cache bash postfix postfix-sqlite postfix-pcre rsyslog
COPY conf /etc/postfix
COPY rsyslog.conf /etc/rsyslog.conf

View File

@ -1,9 +1,7 @@
FROM alpine:edge
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk add --update \
radicale@testing \
&& rm -rf /var/cache/apk/*
&& apk add --no-cache radicale@testing
COPY radicale.conf /radicale.conf

View File

@ -1,13 +1,11 @@
FROM alpine:edge
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk add --update \
rmilter@testing rsyslog \
&& rm -rf /var/cache/apk/*
&& apk add --no-cache rmilter@testing rsyslog
COPY rmilter.conf /etc/rmilter.conf
COPY rsyslog.conf /etc/rsyslog.conf
COPY start.sh /start.sh
CMD ["/start.sh"]
CMD ["/start.sh"]