Created
August 8, 2019 09:31
-
-
Save kazuhisya/02fbfc6a410a220f9e02af9a00dd8319 to your computer and use it in GitHub Desktop.
lb build for docker https://github.com/kazuhisya/lb/tree/rpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vi: set ft=dockerfile : | |
FROM centos:7 AS build-env | |
WORKDIR /root | |
RUN yum install -y epel-release | |
RUN yum install -y golang openldap-devel make gettext git rpm-build | |
RUN git clone -b rpm https://github.com/kazuhisya/lb | |
RUN cd lb && make rpm | |
FROM centos:7 | |
COPY --from=build-env /root/lb/dist/RPMS/x86_64 /root/x86_64 | |
RUN yum --disablerepo=* install /root/x86_64/lb-*.rpm -y | |
ENTRYPOINT ["lb"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment