We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 293c618 + 5472ffa commit ffda4f4Copy full SHA for ffda4f4
client/Dockerfile.prod
@@ -3,7 +3,7 @@ RUN mkdir /srv/client && chown node:node /srv/client
3
WORKDIR /srv/client
4
USER node
5
RUN mkdir -p node_modules
6
-COPY --chown=node:node package.json package.json ./
+COPY --chown=node:node package*.json ./
7
RUN npm install --no-update-notifier
8
9
FROM node:20-alpine AS client-builder
@@ -12,8 +12,8 @@ WORKDIR /srv/client
12
COPY --from=node-modules-install /srv/client/node_modules node_modules
13
COPY . .
14
USER root
15
-ARG CUSTOM_REQUEST_HEADER nAb3kY-S%qE#4!d
16
-ENV REACT_APP_CUSTOM_REQUEST_HEADER $CUSTOM_REQUEST_HEADER
+ARG CUSTOM_REQUEST_HEADER=nAb3kY-S%qE#4!d
+ENV REACT_APP_CUSTOM_REQUEST_HEADER=$CUSTOM_REQUEST_HEADER
17
RUN npm run build
18
19
FROM nginx as client-production
0 commit comments