Spaces:
Build error
Build error
| # Use a very simple base image | |
| FROM node:18-alpine | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY package.json ./ | |
| RUN npm install | |
| # Copy source code | |
| COPY . . | |
| # Build the application | |
| RUN npm run build | |
| # Expose the port | |
| EXPOSE 3000 | |
| # Start the application | |
| CMD ["npm", "start"] |