display/Dockerfile

20 lines
445 B
Text
Raw Normal View History

2021-11-12 16:41:27 +01:00
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
2021-11-12 17:42:12 +01:00
COPY .git ./.git
2021-11-12 16:41:27 +01:00
ARG REACT_APP_TCL_AUTH
2021-11-12 17:46:58 +01:00
RUN export REACT_APP_VERSION=$(git describe --always) && \
export REACT_APP_DATE=$(date +"%Y-%m-%d %H:%M:%S") && \
yarn build
2021-11-12 16:41:27 +01:00
FROM nginx AS prod
COPY --from=build /app/build /usr/share/nginx/html