forked from EvilFreelancer/docker-routeros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (33 loc) · 742 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM alpine:3.8
ENV ROUTEROS_VERSON="6.46beta28"
ENV ROUTEROS_IMAGE="chr-$ROUTEROS_VERSON.vdi"
ENV ROUTEROS_PATH="https://download.mikrotik.com/routeros/$ROUTEROS_VERSON/$ROUTEROS_IMAGE"
RUN mkdir /routeros
WORKDIR /routeros
ADD [".", "/routeros"]
RUN apk add --no-cache --update netcat-openbsd qemu-x86_64 qemu-system-x86_64 \
&& echo ">>> $ROUTEROS_PATH" \
&& if [ ! -e "$ROUTEROS_IMAGE" ]; then wget "$ROUTEROS_PATH"; fi
# For access via VNC
EXPOSE 5900
# Default ports of RouterOS
EXPOSE 21
EXPOSE 22
EXPOSE 23
EXPOSE 80
EXPOSE 443
EXPOSE 8291
EXPOSE 8728
EXPOSE 8729
# IPSec
EXPOSE 50
EXPOSE 51
EXPOSE 500/udp
EXPOSE 4500/udp
# OpenVPN
EXPOSE 1194
# L2TP
EXPOSE 1701
# PPTP
EXPOSE 1723
ENTRYPOINT ["/routeros/entrypoint.sh"]