routeros-config-export/Dockerfile

22 lines
393 B
Docker
Raw Normal View History

2023-11-08 15:53:22 +01:00
# hadolint ignore=DL3007
FROM alpine:latest
2023-07-19 20:46:20 +02:00
2023-11-08 15:53:22 +01:00
# hadolint ignore=DL3018
RUN apk add --no-cache \
git \
openssh-client \
2023-11-08 16:05:36 +01:00
iputils-ping \
&& mkdir /app
2023-07-19 20:46:20 +02:00
# Copy the script into the container
2023-07-21 20:40:39 +02:00
COPY app.sh /app/app.sh
2023-07-19 20:46:20 +02:00
# Set the working directory
WORKDIR /app
# Make the script executable
2023-11-08 16:12:29 +01:00
RUN chmod +x /app/app.sh
2023-07-19 20:46:20 +02:00
# Set the entrypoint to execute the script
2023-07-21 20:40:39 +02:00
ENTRYPOINT ["/app/app.sh"]