| 1234567891011121314151617181920212223242526 |
- # Use an official Python image as a base
- FROM python:3.9-slim
- # Set the working directory to /app
- WORKDIR /app
- # Copy the script into the container
- COPY ip_notifier.py requirements.txt /app/
- # Update pip to the latest version
- RUN pip install --upgrade pip
- # Install the required dependencies
- RUN pip install -r requirements.txt
- # Expose the port (not needed in this case, but good practice)
- EXPOSE 80
- # Create a volume for the config file
- VOLUME /app/config
- # - /home/yazoo/appdev/dynip/config/config.ini:/app/config.ini
- # - /home/yazoo/appdev/dynip/config/last_ip.txt:/app/last_ip.txt
- # Run the command when the container starts
- CMD ["python", "ip_notifier.py"]
|