Skip to content

Commit

Permalink
chore: nginx 1.27.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ychung-mot committed Oct 29, 2024
1 parent bea9aca commit 3fa961d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
10 changes: 4 additions & 6 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.16.0-slim as builder-app
FROM node:18.16.0 as builder-app

ARG generate_sourcemap=false
WORKDIR /app
Expand All @@ -10,11 +10,9 @@ COPY . .

RUN npm run build -- --configuration production --output-hashing=none

FROM nginx:stable-alpine as builder-modules

# Ensure that the version of nginx of the builder image is compatible with the nginx version of the main image.
ENV NGINX_VERSION 1.24.0
FROM nginx:1.27.2-alpine as builder-modules

ENV NGINX_VERSION 1.27.2
ENV MORE_HEADERS_VERSION=0.34
ENV MORE_HEADERS_GITREPO=openresty/headers-more-nginx-module

Expand Down Expand Up @@ -44,7 +42,7 @@ RUN mkdir -p ${DOWNLOADS} && \
./configure --with-compat $CONFARGS --add-dynamic-module=${HEADERS_MORE_MODULE} && \
make && make install

FROM nginx:stable-alpine3.17-slim
FROM nginx:1.27.2-alpine

ENV NGINX_DIR /usr/share/nginx

Expand Down
8 changes: 3 additions & 5 deletions frontend/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ COPY . .

RUN npm run build -- --configuration production --output-hashing=none

FROM nginx:stable-alpine as builder-modules

# Ensure that the version of nginx of the builder image is compatible with the nginx version of the main image.
ENV NGINX_VERSION 1.24.0
FROM nginx:1.27.2-alpine as builder-modules

ENV NGINX_VERSION 1.27.2
ENV MORE_HEADERS_VERSION=0.34
ENV MORE_HEADERS_GITREPO=openresty/headers-more-nginx-module

Expand Down Expand Up @@ -44,7 +42,7 @@ RUN mkdir -p ${DOWNLOADS} && \
./configure --with-compat $CONFARGS --add-dynamic-module=${HEADERS_MORE_MODULE} && \
make && make install

FROM nginx:stable-alpine3.17-slim
FROM nginx:1.27.2-alpine

ENV NGINX_DIR /usr/share/nginx

Expand Down

0 comments on commit 3fa961d

Please sign in to comment.