Skip to content

Instantly share code, notes, and snippets.

@kazuhisya
Created August 8, 2019 09:31
Show Gist options
  • Save kazuhisya/02fbfc6a410a220f9e02af9a00dd8319 to your computer and use it in GitHub Desktop.
Save kazuhisya/02fbfc6a410a220f9e02af9a00dd8319 to your computer and use it in GitHub Desktop.
# 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