Spaces:
Build error
Build error
# Use an official lightweight Python image | |
FROM python:3.9-slim | |
# Set the working directory | |
WORKDIR /app | |
# Copy Python script into the container | |
COPY keep_alive.py /app/keep_alive.py | |
# Install dependencies | |
RUN pip install requests | |
# Run the script | |
CMD ["python", "/app/keep_alive.py"] | |