1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-24 07:48:38 +00: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

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

@ -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;"]

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