forked from oracle/docker-images
-
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.
Add NGINX images for each Oracle Linux 8 AppStream (oracle#2171)
- Loading branch information
1 parent
8b0ab0a
commit 7ef625d
Showing
5 changed files
with
89 additions
and
10 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
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,23 @@ | ||
# Copyright (c) 2021, 2021 Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
FROM ghcr.io/oracle/oraclelinux:8 | ||
|
||
RUN \ | ||
# Explicitly disable PHP to suppress conflicting requests error | ||
dnf -y module disable php \ | ||
&& \ | ||
dnf -y module enable nginx:1.14 && \ | ||
dnf -y install nginx && \ | ||
rm -rf /var/cache/dnf \ | ||
&& \ | ||
# forward request and error logs to container engine log collector | ||
ln -sf /dev/stdout /var/log/nginx/access.log && \ | ||
ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
||
EXPOSE 80/tcp | ||
EXPOSE 443/tcp | ||
|
||
STOPSIGNAL SIGQUIT | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
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,23 @@ | ||
# Copyright (c) 2021, 2021 Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
FROM ghcr.io/oracle/oraclelinux:8 | ||
|
||
RUN \ | ||
# Explicitly disable PHP to suppress conflicting requests error | ||
dnf -y module disable php \ | ||
&& \ | ||
dnf -y module enable nginx:1.16 && \ | ||
dnf -y install nginx && \ | ||
rm -rf /var/cache/dnf \ | ||
&& \ | ||
# forward request and error logs to container engine log collector | ||
ln -sf /dev/stdout /var/log/nginx/access.log && \ | ||
ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
||
EXPOSE 80/tcp | ||
EXPOSE 443/tcp | ||
|
||
STOPSIGNAL SIGQUIT | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
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,23 @@ | ||
# Copyright (c) 2021, 2021 Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
FROM ghcr.io/oracle/oraclelinux:8 | ||
|
||
RUN \ | ||
# Explicitly disable PHP to suppress conflicting requests error | ||
dnf -y module disable php \ | ||
&& \ | ||
dnf -y module enable nginx:1.18 && \ | ||
dnf -y install nginx && \ | ||
rm -rf /var/cache/dnf \ | ||
&& \ | ||
# forward request and error logs to container engine log collector | ||
ln -sf /dev/stdout /var/log/nginx/access.log && \ | ||
ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
||
EXPOSE 80/tcp | ||
EXPOSE 443/tcp | ||
|
||
STOPSIGNAL SIGQUIT | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |