Spaces:
No application file
No application file
| # 1. Use an official Python runtime as a parent image | |
| FROM python:3.10-slim | |
| # 2. Set the working directory in the container | |
| WORKDIR /app | |
| # 3. Copy the requirements file first (better for Docker caching) | |
| COPY requirements.txt . | |
| # 4. Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 5. Copy the rest of your application code | |
| COPY . . | |
| # 6. Expose the port the app runs on | |
| EXPOSE 7860 | |
| # 7. Run the application | |
| # We use the same command you used locally! | |
| CMD ["python", "-m", "mini_accountant_env.app"] |