# Development Dockerfile for frontend FROM node:iron-alpine3.22 # Enable Corepack for Yarn 4.x RUN corepack enable # Set working directory WORKDIR /app # Copy all source code first COPY . . # Remove any host PnP artifacts and install fresh in container RUN rm -rf .pnp.* .yarn/cache .yarn/unplugged .yarn/install-state.gz node_modules && \ yarn install --immutable # Expose the application port EXPOSE 3000 # Command to run the development server CMD ["yarn", "dev"]