Add the '--no-cache' flag to apk to avoid having local cache files.

Switched to using labels in Dockerfile
migrate-github-actions
Tim de Pater 2017-01-21 12:05:00 +01:00
parent 8e081a2daa
commit 2b10ea0cee
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,9 @@
FROM alpine:latest
MAINTAINER Tim de Pater <code@trafex.nl>
FROM alpine:3.5
LABEL Maintainer="Tim de Pater <code@trafex.nl>" \
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

View File

@ -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