mirror of
https://github.com/mashirozx/docker-php-nginx.git
synced 2024-12-12 09:54:37 +08:00
Add the '--no-cache' flag to apk to avoid having local cache files.
Switched to using labels in Dockerfile
This commit is contained in:
parent
8e081a2daa
commit
2b10ea0cee
@ -1,8 +1,9 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:3.5
|
||||||
MAINTAINER Tim de Pater <code@trafex.nl>
|
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
|
# 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
|
# Configure nginx
|
||||||
COPY config/nginx.conf /etc/nginx/nginx.conf
|
COPY config/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
@ -17,5 +17,4 @@ See the PHP info on http://localhost, or the static html page on http://localhos
|
|||||||
Resources & inspiration
|
Resources & inspiration
|
||||||
-----------------------
|
-----------------------
|
||||||
https://ejosh.co/de/2015/09/how-to-link-docker-containers-together
|
https://ejosh.co/de/2015/09/how-to-link-docker-containers-together
|
||||||
|
|
||||||
https://github.com/johanan/Ansible-and-Docker
|
https://github.com/johanan/Ansible-and-Docker
|
||||||
|
Loading…
Reference in New Issue
Block a user