Skip to content

Commit ca5fba9

Browse files
Merge pull request #2122 from bcgov/feature/ALCS-2514-fix-dockerfile-warnings
ALCS-2514: Fix dockerfile warnings
2 parents b41af96 + efb3d24 commit ca5fba9

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

alcs-frontend/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN npm ci
1313
# Copy the source code to the /app directory
1414
COPY . .
1515

16-
ENV NODE_OPTIONS="--max-old-space-size=2048"
16+
ENV NODE_OPTIONS "--max-old-space-size=2048"
1717

1818
# Build the application
1919
RUN npm run build -- --output-path=dist --output-hashing=all
@@ -47,10 +47,10 @@ COPY --from=build /app/dist /usr/share/nginx/html
4747
RUN 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
5656
ENTRYPOINT [ "./init.sh" ]

portal-frontend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN npm ci
1313
# Copy the source code to the /app directory
1414
COPY . .
1515

16-
ENV NODE_OPTIONS="--max-old-space-size=2048"
16+
ENV NODE_OPTIONS "--max-old-space-size=2048"
1717

1818
# Build the application
1919
RUN npm run build -- --output-path=dist --output-hashing=all
@@ -47,7 +47,7 @@ COPY --from=build /app/dist /usr/share/nginx/html
4747
RUN 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
5353
ENTRYPOINT [ "./init.sh" ]

services/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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

88
WORKDIR /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
2323
ARG NEST_APP=alcs
2424

2525
WORKDIR /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
4444
ARG NEST_APP=alcs
4545

4646
# Init

services/Dockerfile.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine As development
1+
FROM node:20-alpine AS development
22

33
WORKDIR /opt/app-root/
44
RUN chown node:node /opt/app-root/

services/Dockerfile.migrate

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# DATABASE MIGRATION
33
#####################
44

5-
FROM node:20-alpine As development
5+
FROM node:20-alpine AS development
66

77
WORKDIR /opt/app-root/
88

99
# OpenShift fixes
1010
RUN 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
1212
RUN npm config set cache $/opt/app-root/.npm
1313

1414
COPY package*.json ./
@@ -20,7 +20,7 @@ ARG environment=production
2020
ENV NODE_ENV ${environment}
2121

2222
ARG NEST_APP=alcs
23-
ENV NEST_APP=${NEST_APP}
23+
ENV NEST_APP ${NEST_APP}
2424

2525
COPY . .
2626

0 commit comments

Comments
 (0)