Use --no-cache when installing packages

master
Pierre Jaury 8 years ago
parent be5562620e
commit 0cf1d82dde

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

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

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

@ -1,6 +1,6 @@
FROM nginx:alpine 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.default /etc/nginx/nginx.conf.default
COPY nginx.conf.fallback /etc/nginx/nginx.conf.fallback COPY nginx.conf.fallback /etc/nginx/nginx.conf.fallback

@ -1,6 +1,6 @@
FROM alpine 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 conf /etc/postfix
COPY rsyslog.conf /etc/rsyslog.conf COPY rsyslog.conf /etc/rsyslog.conf

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

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

Loading…
Cancel
Save