bunkalab/Argilla-Prompt-Exploration
5
1# Use an official Node.js runtime as a parent image2FROM node:20 AS build3 4# Set the working directory in the container5WORKDIR /app6 7RUN chown node:node /app8 9# Copy package.json and package-lock.json to the working directory10COPY package*.json ./11 12USER node13COPY --chown=node:node package.json package-lock.json* ./14# Install project dependencies15RUN npm install16 17#RUN mkdir node_modules/.cache && chmod -R 777 node_modules/.cache18 19# Copy the rest of the application code to the working directory20COPY . .21 22# Build the React app23RUN npm run build24 25# Expose the application port (optional, adjust as needed)26EXPOSE 300027 28# Start the React app29CMD ["npm", "start"]