-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (31 loc) · 1.34 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM python:3.12-alpine3.20
WORKDIR /tmp
COPY requirements.txt requirements.txt
ENV VERSION=1.17.2
ADD https://releases.hashicorp.com/vault/${VERSION}/vault_${VERSION}_linux_amd64.zip /tmp/
ADD https://releases.hashicorp.com/vault/${VERSION}/vault_${VERSION}_SHA256SUMS /tmp/
ADD https://releases.hashicorp.com/vault/${VERSION}/vault_${VERSION}_SHA256SUMS.sig /tmp/
RUN apk --update add --virtual verify gpgme \
&& gpg --keyserver keyserver.ubuntu.com --recv-key 0x72D7468F \
&& gpg --verify /tmp/vault_${VERSION}_SHA256SUMS.sig \
&& apk del verify \
&& cat vault_${VERSION}_SHA256SUMS | grep linux_amd64 | sha256sum -c \
&& unzip vault_${VERSION}_linux_amd64.zip \
&& mv vault /usr/local/bin/ \
&& apk del busybox \
&& apk add --no-cache bash squashfs-tools git openssh-client coreutils binutils findutils jq \
grep file make gpg gpg-agent util-linux xxhash curl vim git-lfs \
tar skopeo htop jo debootstrap rsync \
&& pip install --break-system-packages -r requirements.txt \
&& pip install --break-system-packages ansible \
&& curl -sL https://sentry.io/get-cli/ | bash \
&& rm -rf /tmp/* \
&& rm -rf /var/cache/apk/*
WORKDIR /srv
ARG VAUBAN_SHA1
ARG VAUBAN_BRANCH
RUN [[ ${VAUBAN_SHA1:-null} != null ]]
ENV VAUBAN_SHA1=$VAUBAN_SHA1
ENV VAUBAN_BRANCH=$VAUBAN_BRANCH
COPY *.sh *.py *.conf config.yml ./
COPY modules.d ./modules.d