optimize the controller build & ship workflow a bit

This commit is contained in:
Grant Limberg 2021-08-20 09:22:44 -07:00
parent 50b0b2e2e9
commit 1d8b8d8e9c
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
3 changed files with 19 additions and 29 deletions

View file

@ -0,0 +1,12 @@
# Dockerfile for building ZeroTier Central Controllers
FROM centos:8 as builder
MAINTAINER Adam Ierymekno <adam.ierymenko@zerotier.com>, Grant Limberg <grant.limberg@zerotier.com>
ARG git_branch=master
RUN yum update -y
RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
RUN dnf -qy module disable postgresql
RUN yum -y install epel-release && yum -y update && yum clean all
RUN yum groupinstall -y "Development Tools" && yum clean all
RUN yum install -y bash cmake postgresql10 postgresql10-devel clang jemalloc jemalloc-devel libpqxx libpqxx-devel && yum clean all