16 lines
322 B
Docker
16 lines
322 B
Docker
FROM python:3.11-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir requests python-dateutil
|
|
|
|
# Copy the script
|
|
COPY nvd_telegram_notifier.py .
|
|
|
|
# Create directories for persistent data
|
|
RUN mkdir -p /app/data
|
|
|
|
# Run the script
|
|
CMD ["python", "-u", "nvd_telegram_notifier.py"] |