Spaces:
No application file
No application file
| FROM python:3.9-slim | |
| # Install Node.js | |
| RUN apt-get update && apt-get install -y curl | |
| RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - | |
| RUN apt-get install -y nodejs | |
| WORKDIR /app | |
| # Copy both Python and Node.js files | |
| COPY package*.json ./ | |
| COPY *.py ./ | |
| COPY *.js ./ | |
| # Install dependencies | |
| RUN npm install | |
| RUN pip install -r requirements.txt | |
| # Set environment variables | |
| ENV DISCORD_TOKEN=${DISCORD_TOKEN} | |
| ENV TARGET_CHANNEL_ID=${TARGET_CHANNEL_ID} | |
| # Run both services | |
| CMD ["sh", "-c", "node index.js & python app.py"] |