routeros-config-export/Dockerfile

27 lines
605 B
Text
Raw Normal View History

2023-07-19 20:46:20 +02:00
FROM ubuntu:latest
2023-07-21 18:15:59 +02:00
# deaktiviert Nachfragen beim installieren von Paketen
ENV DEBIAN_FRONTEND=noninteractive
2023-07-19 20:46:20 +02:00
# Install necessary packages
2023-07-21 18:14:22 +02:00
RUN apt-get update && \
2023-07-21 18:15:59 +02:00
apt-get -y --no-install-recommends install git python3 python3-pip && \
2023-07-21 18:17:40 +02:00
pip install --no-cache-dir paramiko gitpython && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
2023-07-19 20:46:20 +02:00
# Copy the script into the container
2023-07-21 18:14:22 +02:00
COPY app.py /app/app.py
2023-07-19 20:46:20 +02:00
# Set the working directory
WORKDIR /app
# Make the script executable
2023-07-21 18:14:22 +02:00
RUN chmod +x app.py
2023-07-19 20:46:20 +02:00
# Set the entrypoint to execute the script
2023-07-21 18:14:22 +02:00
ENTRYPOINT ["/app/app.py"]
2023-07-19 21:41:48 +02:00
# cron fehlt