Spaces:
Runtime error
Runtime error
| FROM node:18-alpine | |
| # Install SQLite and other dependencies | |
| RUN apk add --no-cache sqlite | |
| # Create app directory | |
| WORKDIR /usr/src/app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy app source | |
| COPY . . | |
| # Create directories for data and datasets | |
| RUN mkdir -p /usr/src/app/data /usr/src/app/datasets | |
| # Expose port | |
| EXPOSE 3000 | |
| # Start the application | |
| CMD ["node", "server.js"] |