File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN npm ci
1313# Copy the source code to the /app directory
1414COPY . .
1515
16- ENV NODE_OPTIONS= "--max-old-space-size=2048"
16+ ENV NODE_OPTIONS "--max-old-space-size=2048"
1717
1818# Build the application
1919RUN npm run build -- --output-path=dist --output-hashing=all
@@ -47,10 +47,10 @@ COPY --from=build /app/dist /usr/share/nginx/html
4747RUN chmod -R go+rwx /usr/share/nginx/html/assets
4848
4949# provide dynamic scp content-src
50- ENV ENABLED_CONNECT_SRC= " 'self' http://localhost:* nrs.objectstore.gov.bc.ca"
50+ ENV ENABLED_CONNECT_SRC " 'self' http://localhost:* nrs.objectstore.gov.bc.ca"
5151
5252# set to true to enable maintenance mode
53- ENV MAINTENANCE_MODE= "false"
53+ ENV MAINTENANCE_MODE "false"
5454
5555# When the container starts, replace the settings.json with values from environment variables
5656ENTRYPOINT [ "./init.sh" ]
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN npm ci
1313# Copy the source code to the /app directory
1414COPY . .
1515
16- ENV NODE_OPTIONS= "--max-old-space-size=2048"
16+ ENV NODE_OPTIONS "--max-old-space-size=2048"
1717
1818# Build the application
1919RUN npm run build -- --output-path=dist --output-hashing=all
@@ -47,7 +47,7 @@ COPY --from=build /app/dist /usr/share/nginx/html
4747RUN chmod -R go+rwx /usr/share/nginx/html/assets
4848
4949# provide dynamic scp content-src
50- ENV ENABLED_CONNECT_SRC= " 'self' http://localhost:* nrs.objectstore.gov.bc.ca"
50+ ENV ENABLED_CONNECT_SRC " 'self' http://localhost:* nrs.objectstore.gov.bc.ca"
5151
5252# When the container starts, replace the settings.json with values from environment variables
5353ENTRYPOINT [ "./init.sh" ]
Original file line number Diff line number Diff line change 33# https://www.tomray.dev/nestjs-docker-production
44# ##################
55
6- FROM node:20-alpine As development
6+ FROM node:20-alpine AS development
77
88WORKDIR /opt/app-root/
99
@@ -19,7 +19,7 @@ USER node
1919# BUILD FOR PRODUCTION
2020# ##################
2121
22- FROM node:20-alpine As build
22+ FROM node:20-alpine AS build
2323ARG NEST_APP=alcs
2424
2525WORKDIR /opt/app-root/
@@ -40,7 +40,7 @@ USER node
4040# PRODUCTION
4141# ##################
4242
43- FROM node:20-alpine As production
43+ FROM node:20-alpine AS production
4444ARG NEST_APP=alcs
4545
4646# Init
Original file line number Diff line number Diff line change 1- FROM node:20-alpine As development
1+ FROM node:20-alpine AS development
22
33WORKDIR /opt/app-root/
44RUN chown node:node /opt/app-root/
Original file line number Diff line number Diff line change 22# DATABASE MIGRATION
33#####################
44
5- FROM node:20-alpine As development
5+ FROM node:20-alpine AS development
66
77WORKDIR /opt/app-root/
88
99# OpenShift fixes
1010RUN chmod og+rwx /opt/app-root/ /var/run
11- ENV NPM_CONFIG_USERCONFIG= /opt/app-root/.npmrc
11+ ENV NPM_CONFIG_USERCONFIG /opt/app-root/.npmrc
1212RUN npm config set cache $/opt/app-root/.npm
1313
1414COPY package*.json ./
@@ -20,7 +20,7 @@ ARG environment=production
2020ENV NODE_ENV ${environment}
2121
2222ARG NEST_APP=alcs
23- ENV NEST_APP= ${NEST_APP}
23+ ENV NEST_APP ${NEST_APP}
2424
2525COPY . .
2626
You can’t perform that action at this time.
0 commit comments