Spaces:
Sleeping
Sleeping
| FROM node:20-bullseye | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| python3 python3-pip wget unzip openjdk-17-jdk \ | |
| && apt-get clean | |
| # Install Bubblewrap CLI globally (this provides `twa`) | |
| RUN npm install -g @bubblewrap/cli | |
| # Add npm global bin to PATH | |
| ENV PATH="/root/.npm-global/bin:$PATH" | |
| # Set workdir | |
| WORKDIR /workspace | |
| COPY requirements.txt . | |
| COPY app.py . | |
| COPY entrypoint.sh . | |
| RUN pip3 install -r requirements.txt | |
| RUN chmod +x entrypoint.sh | |
| CMD ["python3", "app.py"] | |