24x7_Scipt / Dockerfile
Baskar2005's picture
Create Dockerfile
85bf867 verified
raw
history blame contribute delete
289 Bytes
# 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"]