Skip to content

Commit

Permalink
Added to github
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-keska committed Nov 27, 2017
0 parents commit 90d7cf8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM nginx:mainline-alpine

# Install:
# - rsyslog for logs aggregation
# - bash for a normal shell
# - supervisord for running parallel processes and monitoring them
# - the rest for PIP to build supervisord

RUN apk add --force --update \
bash rsyslog openssl dcron python python-dev py-pip vim \
gcc musl-dev linux-headers \
augeas-dev openssl-dev libffi-dev ca-certificates dialog \
&& pip install supervisor \
&& apk del --force gcc libffi-dev musl-dev linux-headers augeas-dev openssl-dev libffi-dev \
&& rm -rf /var/cache/apk/*

# WWW (nginx)
RUN addgroup -g 1000 production \
&& adduser -u 1000 -H -D -s /bin/sh -G production production

EXPOSE 80
EXPOSE 443
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Nginx on Alpine with Supervisor
===============================

Includes:
- Nginx
- Supervisor
- production user with uid=1000 and gid=1000
- dcron

0 comments on commit 90d7cf8

Please sign in to comment.