Skip to content

Commit ffda4f4

Browse files
authored
Merge pull request #2087 from hackforla/fix/dockerfile-syntax-errors
2 parents 293c618 + 5472ffa commit ffda4f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/Dockerfile.prod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ RUN mkdir /srv/client && chown node:node /srv/client
33
WORKDIR /srv/client
44
USER node
55
RUN mkdir -p node_modules
6-
COPY --chown=node:node package.json package.json ./
6+
COPY --chown=node:node package*.json ./
77
RUN npm install --no-update-notifier
88

99
FROM node:20-alpine AS client-builder
@@ -12,8 +12,8 @@ WORKDIR /srv/client
1212
COPY --from=node-modules-install /srv/client/node_modules node_modules
1313
COPY . .
1414
USER root
15-
ARG CUSTOM_REQUEST_HEADER nAb3kY-S%qE#4!d
16-
ENV REACT_APP_CUSTOM_REQUEST_HEADER $CUSTOM_REQUEST_HEADER
15+
ARG CUSTOM_REQUEST_HEADER=nAb3kY-S%qE#4!d
16+
ENV REACT_APP_CUSTOM_REQUEST_HEADER=$CUSTOM_REQUEST_HEADER
1717
RUN npm run build
1818

1919
FROM nginx as client-production

0 commit comments

Comments
 (0)