mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
22 lines
472 B
Docker
Executable File
22 lines
472 B
Docker
Executable File
|
|
FROM centos:7
|
|
|
|
ARG VERSION
|
|
|
|
WORKDIR /root
|
|
|
|
ADD build/openlan-switch-${VERSION}-1.el7.x86_64.rpm /tmp
|
|
|
|
RUN yum install -y epel-release \
|
|
&& yum install -y iptables bridge-utils \
|
|
&& yum install -y /tmp/openlan-switch-${VERSION}-1.el7.x86_64.rpm
|
|
|
|
LABEL application="OpenLAN Switch Application"
|
|
LABEL maintainer="luscis@163.com"
|
|
|
|
EXPOSE 10000/tcp
|
|
EXPOSE 10002/tcp
|
|
EXPOSE 10002/udp
|
|
|
|
CMD ["/usr/bin/openlan-switch", "-conf:dir", "/etc/openlan/switch", "-log:level", "20"]
|