--- /dev/null
+# Copyright 2019 Nokia
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM centos:7.6.1810
+MAINTAINER Balazs Szekeres <balazs.szekeres@nokia.com>
+
+ARG DEPENDENCY_MANAGER
+ENV DEP_VERSION=$DEPENDENCY_MANAGER
+ARG CPUPOOLER
+ENV CPUPOOLER_VERSION=$CPUPOOLER
+ENV GOPATH /build
+
+RUN yum update -y \
+&& yum install -y \
+ go \
+ git \
+ bash \
+ glide \
+ libtool \
+ autoconf \
+ coreutils \
+ curl \
+ binutils \
+ tar \
+ grep \
+ make \
+ gcc \
+ gcc-c++ \
+&& rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO \
+&& curl -s https://mirror.go-repo.io/centos/go-repo.repo | tee /etc/yum.repos.d/go-repo.repo \
+&& yum install -y golang \
+&& curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 \
+&& chmod +x /usr/local/bin/dep \
+&& mkdir -p $GOPATH/src/github.com/nokia/CPU-Pooler \
+&& curl -fsSL -k https://github.com/nokia/CPU-Pooler/archive/v${CPUPOOLER_VERSION}.tar.gz | tar zx --strip-components=1 -C $GOPATH/src/github.com/nokia/CPU-Pooler \
+&& cd $GOPATH/src/github.com/nokia/CPU-Pooler \
+&& dep ensure --vendor-only \
+# process-starter
+&& CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o process-starter ./cmd/process-starter \
+&& mv $GOPATH/src/github.com/nokia/CPU-Pooler/process-starter /process-starter \
+&& rm -rf $GOPATH
+
+