-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1123 from department-of-veterans-affairs/dm-5280-…
…Nginx-upgrade dm-5280:Upgrade Nginx v1.25 to v1.27
- Loading branch information
Showing
1 changed file
with
16 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 |
---|---|---|
|
@@ -3,6 +3,22 @@ | |
# Note: Comment out the next line to run docker locally | ||
FROM 124858472090.dkr.ecr.us-gov-west-1.amazonaws.com/diffusion-marketplace:centos9 | ||
MAINTAINER Agile Six Applications, Inc. <[email protected]> | ||
|
||
|
||
ENV nginxversion="1.27.1-1" \ | ||
elversion="9" | ||
|
||
# Update repositories and install necessary packages | ||
RUN dnf remove -y nginx nginx-core && \ | ||
dnf update -y && \ | ||
update-ca-trust && \ | ||
dnf install -y wget openssl sed gettext pcre2 && \ | ||
dnf -y autoremove && \ | ||
dnf clean all && \ | ||
wget http://nginx.org/packages/mainline/centos/9/x86_64/RPMS/nginx-$nginxversion.el$elversion.ngx.x86_64.rpm &&\ | ||
rpm -iv nginx-$nginxversion.el$elversion.ngx.x86_64.rpm | ||
|
||
|
||
# establish where Nginx should look for files | ||
ENV RAILS_ROOT /home/nginx/app | ||
ENV PROXY_ROOT /home/nginx/www | ||
|