-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
aa992d1
commit c74e44b
Showing
1 changed file
with
1 addition
and
19 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 |
---|---|---|
@@ -1,23 +1,5 @@ | ||
FROM alpine:latest | ||
|
||
RUN apk add openrc | ||
|
||
RUN apk add nginx | ||
|
||
RUN mkdir -p /run/nginx | ||
|
||
RUN touch /run/nginx/nginx.pid | ||
|
||
RUN adduser -D -g 'www' www | ||
|
||
RUN mkdir /www | ||
|
||
RUN chown -R www:www /var/lib/nginx | ||
|
||
RUN chown -R www:www /www | ||
FROM nginx:alpine | ||
|
||
COPY nginx/default.conf.template /etc/nginx/templates/default.conf.template | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |