Spaces:
Paused
Paused
# Use a lightweight Python image | |
FROM python:3.10-slim | |
# Install necessary system dependencies | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
&& apt-get clean | |
# Install Python dependencies | |
COPY requirements.txt /app/requirements.txt | |
RUN pip install --no-cache-dir -r /app/requirements.txt | |
# Copy the app code | |
COPY . /app | |
WORKDIR /app | |
# Expose port 7860 (if necessary for alternative tools) | |
EXPOSE 7860 | |
# Start the Textual app | |
CMD ["python", "-m", "textual", "run", "JSONEditorApp"] | |