-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 90d7cf8
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |