17 lines
309 B
Text
17 lines
309 B
Text
|
FROM node:14-bullseye AS build
|
||
|
WORKDIR /app
|
||
|
ENV PATH /app/node_modules/.bin:$PATH
|
||
|
|
||
|
COPY package.json yarn.lock ./
|
||
|
RUN yarn install --silent
|
||
|
|
||
|
COPY tsconfig.json ./
|
||
|
COPY public ./public
|
||
|
COPY src ./src
|
||
|
|
||
|
ARG REACT_APP_TCL_AUTH
|
||
|
RUN yarn build
|
||
|
|
||
|
FROM nginx AS prod
|
||
|
COPY --from=build /app/build /usr/share/nginx/html
|