Spaces:
Runtime error
Runtime error
FROM python:3.9 | |
# Install necessary system dependencies | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
python3-tk \ | |
&& rm -rf /var/lib/apt/lists/* | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
COPY . . | |
# Set up the environment variable to ensure Tkinter doesn't complain about no display | |
ENV DISPLAY=:99 | |
# CMD to start the application | |
CMD ["python3", "-m", "app", "--host", "0.0.0.0", "--port", "7860"] | |