From e245ef804e4a95356400cd367e9ff1e8e5e2f6bc Mon Sep 17 00:00:00 2001 From: saisab29 Date: Thu, 5 Dec 2024 12:55:15 +0545 Subject: [PATCH] install types/react in dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index f0a8d15..9412393 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,9 @@ WORKDIR /app COPY package*.json ./ RUN npm ci --omit=dev --force +# Install TypeScript types for React (required for TypeScript projects) +RUN npm install --save-exact --save-dev @types/react + # Build Stage: Build Application FROM node:20-alpine AS builder