FROM debian:buster ARG SALT_VERSION=3001 RUN apt-get update &&\ apt-get install -y wget gnupg2 &&\ wget -O - https://repo.saltstack.com/py3/debian/10/amd64/${SALT_VERSION}/SALTSTACK-GPG-KEY.pub | apt-key add - &&\ echo "deb http://repo.saltstack.com/py3/debian/10/amd64/${SALT_VERSION} buster main" > /etc/apt/sources.list.d/saltstack.list &&\ apt-get update &&\ apt-get install -y salt-master &&\ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* COPY ./config/master /etc/salt/master CMD ["salt-master"]