Skip to content

Commit

Permalink
Merge pull request #1123 from department-of-veterans-affairs/dm-5280-…
Browse files Browse the repository at this point in the history
…Nginx-upgrade

dm-5280:Upgrade Nginx v1.25 to v1.27
  • Loading branch information
nuel247 authored Nov 15, 2024
2 parents 63f9765 + fbe66c2 commit 91fefbe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91fefbe

Please sign in to comment.