Spaces:
No application file
No application file
File size: 528 Bytes
c1bb830 75ffb61 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # 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"] |