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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user