From 2b10ea0ceedb93885b1555830173a5a44f5fe58c Mon Sep 17 00:00:00 2001 From: Tim de Pater Date: Sat, 21 Jan 2017 12:05:00 +0100 Subject: [PATCH] Add the '--no-cache' flag to apk to avoid having local cache files. Switched to using labels in Dockerfile --- Dockerfile | 7 ++++--- README.md | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index aba3312..d4ee27d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ -FROM alpine:latest -MAINTAINER Tim de Pater +FROM alpine:3.5 +LABEL Maintainer="Tim de Pater " \ + Description="Lightweight container with Nginx 1.10 & PHP-FPM 7.0 based on Alpine Linux." # Install packages -RUN apk --update add php7 php7-fpm nginx supervisor --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ +RUN apk --no-cache add php7 php7-fpm nginx supervisor --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ # Configure nginx COPY config/nginx.conf /etc/nginx/nginx.conf diff --git a/README.md b/README.md index 3269cc7..a5de3f0 100644 --- a/README.md +++ b/README.md @@ -17,5 +17,4 @@ See the PHP info on http://localhost, or the static html page on http://localhos Resources & inspiration ----------------------- https://ejosh.co/de/2015/09/how-to-link-docker-containers-together - https://github.com/johanan/Ansible-and-Docker