Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RUN mkdir /srv/client && chown node:node /srv/client
WORKDIR /srv/client
USER node
RUN mkdir -p node_modules
COPY --chown=node:node package.json package.json ./
COPY --chown=node:node package*.json ./
RUN npm install --no-update-notifier

FROM node:20-alpine AS client-builder
Expand All @@ -12,8 +12,8 @@ WORKDIR /srv/client
COPY --from=node-modules-install /srv/client/node_modules node_modules
COPY . .
USER root
ARG CUSTOM_REQUEST_HEADER nAb3kY-S%qE#4!d
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
RUN npm run build

FROM nginx as client-production
Expand Down
Loading