EvilFreelancer.docker-routeros/Dockerfile

34 lines
897 B
Text
Raw Normal View History

2020-04-14 21:20:11 +03:00
FROM alpine:3.11
2018-08-22 15:55:57 +03:00
2020-04-14 21:20:11 +03:00
# For access via VNC
EXPOSE 5900
# Default ports of RouterOS
EXPOSE 21 22 23 80 443 8291 8728 8729
# Different VPN services
EXPOSE 50 51 500/udp 4500/udp 1194/tcp 1194/udp 1701 1723
2018-08-22 15:55:57 +03:00
2020-04-14 21:20:11 +03:00
# Change work dir (it will also create this folder if is not exist)
2018-08-22 15:55:57 +03:00
WORKDIR /routeros
2020-04-14 21:20:11 +03:00
# Install dependencies
RUN set -xe \
&& apk add --no-cache --update \
netcat-openbsd qemu-x86_64 qemu-system-x86_64 \
busybox-extras iproute2 iputils \
bridge-utils iptables jq bash python3
2018-08-22 15:55:57 +03:00
2020-04-14 21:20:11 +03:00
# Environments which may be change
2020-05-03 00:00:09 +03:00
ENV ROUTEROS_VERSON="6.46.6"
2020-04-14 21:20:11 +03:00
ENV ROUTEROS_IMAGE="chr-$ROUTEROS_VERSON.vdi"
ENV ROUTEROS_PATH="https://download.mikrotik.com/routeros/$ROUTEROS_VERSON/$ROUTEROS_IMAGE"
2018-08-22 15:55:57 +03:00
2020-04-14 21:20:11 +03:00
# Download VDI image from remote site
RUN wget "$ROUTEROS_PATH" -O "/routeros/$ROUTEROS_IMAGE"
# Copy script to routeros folder
ADD ["./scripts", "/routeros"]
2018-08-22 15:55:57 +03:00
ENTRYPOINT ["/routeros/entrypoint.sh"]