-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (19 loc) · 942 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM debian:12.8-slim
ARG DEBIAN_FRONTEND=noninteractive
ENV salt_version=3007.1
ENV debian_version=12
ENV debian_codename=bookworm
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y curl gnupg2 procps
RUN groupadd --gid 2101 salt && useradd --uid 2101 salt -g salt --shell /usr/sbin/nologin -d /opt/saltstack
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring.pgp https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public
RUN curl -fsSL -o/etc/apt/sources.list.d/salt.sources https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.sources
RUN printf "Package: salt-*\nPin: version ${salt_version}\nPin-Priority: 1001\n" > /etc/apt/preferences.d/salt-pin-1001
RUN apt-get update
RUN apt-get install -y salt-master salt-minion salt-ssh salt-cloud python3-git
COPY run.sh /
RUN chmod +x /run.sh
EXPOSE 4505/tcp 4506/tcp
CMD ["/run.sh"]