# Use the official Node.js 16 image as the base imageFROM node:16# Set the working directory in the containerWORKDIR /appRUN npm install -g viteRUN npm i -g three# Copy package.json and package-lock.json to the containerCOPY package*.json ./# Install the app's dependenciesRUN npm install# Copy the app's source code to the containerCOPY . /app/# Expose the port that the app listens onEXPOSE 5173# Start the appRUN npm i viteRUN npm i threeRUN npm iRUN npm updateCMD [ "npm", "run", "dev" ]