Spaces:
Running
Running
| # Use Bun Alpine as base image | |
| FROM oven/bun:alpine | |
| # Set working directory | |
| WORKDIR / | |
| # Copy application files | |
| COPY . ./ | |
| # Copy .env file if it exists | |
| #COPY .env* ./ | |
| # Install dependencies if package.json exists | |
| #RUN if [ -f package.json ]; then bun install --frozen-lockfile; fi | |
| # Expose port (adjust if needed) | |
| EXPOSE 7860 | |
| # Run the chat.js application | |
| CMD ["bun", "./server.js"] |