Spaces:
Paused
Paused
| FROM python:3.9 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| # Set working directory | |
| WORKDIR /app | |
| RUN python -m pip install --upgrade pip | |
| # Copy requirements and install dependencies | |
| COPY --chown=user ./requirements2.txt requirements2.txt | |
| RUN pip install --no-cache-dir -r requirements2.txt | |
| COPY app.py . | |
| # Expose any ports if needed (Telegram bot uses polling, no ports needed) | |
| COPY --chown=user . /app | |
| CMD ["python", "app.py"] | |