-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dockerfile + compose for ol-www0 web_nginx
- Loading branch information
1 parent
949fc58
commit 602acf8
Showing
2 changed files
with
40 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
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,15 @@ | ||
FROM ubuntu:xenial | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends nginx curl \ | ||
# nginx-plus | ||
apt-transport-https lsb-release ca-certificates wget | ||
|
||
RUN wget -O - https://openresty.org/package/pubkey.gpg | apt-key add - | ||
RUN echo "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" \ | ||
| tee /etc/apt/sources.list.d/openresty.list | ||
|
||
RUN apt-get update && apt-get -y install --no-install-recommends openresty | ||
|
||
RUN rm /usr/sbin/nginx | ||
RUN curl -L https://archive.org/download/nginx/nginx -o /usr/sbin/nginx | ||
RUN chmod +x /usr/sbin/nginx |