Files
openlan/docker/centos/Dockerfile
Daniel Ding 269ed244c0
Some checks are pending
Coverage CI / build (push) Waiting to run
CodeQL / Analyze (go) (push) Waiting to run
Ubuntu CI / build (push) Waiting to run
fea: rename point to access.
2025-03-21 23:12:06 +08:00

19 lines
480 B
Docker
Executable File

FROM centos:7
ARG linux_bin
WORKDIR /root
# mirrorlist for centos7 is EOF.
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/*.repo
ADD ${linux_bin} /tmp
RUN DOCKER=yes /tmp/${linux_bin}
RUN rm -rvf /tmp/* && yum clean all
LABEL application="OpenLAN Network Solutions"
LABEL maintainer="danieldin95@163.com"
CMD ["/var/openlan/script/switch.sh", "start"]