1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00

update nginx

This commit is contained in:
kev 2016-06-20 22:12:41 +08:00
parent c5ff20a50a
commit 9591c062e3
3 changed files with 23 additions and 5 deletions

View File

@ -3,13 +3,10 @@
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
RUN set -xe \
&& apk add -U nginx \
&& rm -rf /var/cache/apk/*
VOLUME /usr/share/nginx/html
RUN apk add --no-cache nginx
EXPOSE 80

13
nginx/arm/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
#
# Dockerfile for nginx-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache nginx
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@ -0,0 +1,8 @@
nginx:
image: easypi/nginx-arm
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./html:/usr/share/nginx/html
restart: always