Skip to content

Commit 2b10ea0

Browse files
committed
Add the '--no-cache' flag to apk to avoid having local cache files.
Switched to using labels in Dockerfile
1 parent 8e081a2 commit 2b10ea0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
FROM alpine:latest
2-
MAINTAINER Tim de Pater <[email protected]>
1+
FROM alpine:3.5
2+
LABEL Maintainer="Tim de Pater <[email protected]>" \
3+
Description="Lightweight container with Nginx 1.10 & PHP-FPM 7.0 based on Alpine Linux."
34

45
# Install packages
5-
RUN apk --update add php7 php7-fpm nginx supervisor --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/
6+
RUN apk --no-cache add php7 php7-fpm nginx supervisor --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/
67

78
# Configure nginx
89
COPY config/nginx.conf /etc/nginx/nginx.conf

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ See the PHP info on http://localhost, or the static html page on http://localhos
1717
Resources & inspiration
1818
-----------------------
1919
https://ejosh.co/de/2015/09/how-to-link-docker-containers-together
20-
2120
https://github.com/johanan/Ansible-and-Docker

0 commit comments

Comments
 (0)