-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (28 loc) · 1.6 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
# https://github.com/duo-labs/cloudmapper
FROM python:3.12-slim as cloudmapper
# renovate: datasource=github-releases depName=duo-labs/cloudmapper
ARG CLOUDMAPPER_VERSION=2.10.0
ENV BUILD_PACKAGES='build-essential autoconf automake libtool'
ENV ESSTENTIAL_PACKAGES='python3-tk jq awscli git bash'
ENV GIT_CLONE_CMD="--branch ${CLOUDMAPPER_VERSION} --depth 1 https://github.com/duo-labs/cloudmapper.git"
WORKDIR /opt/cloudmapper
# hadolint ignore=DL3008,DL3013
RUN apt-get update -y --no-install-recommends \
&& apt-get install -y --no-install-recommends ${BUILD_PACKAGES} \
&& apt-get install -y --no-install-recommends ${ESSTENTIAL_PACKAGES} \
&& apt-get install -y --no-install-recommends bash \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& git clone ${GIT_CLONE_CMD} /opt/cloudmapper \
&& pip3 install --no-cache-dir -r requirements.txt \
&& pip3 install --no-cache-dir --upgrade yq awscli pip
LABEL org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.vendor="https://github.com/cloudkats" \
org.opencontainers.image.title="cloudkats/cloudmapper" \
org.opencontainers.image.source="https://github.com/duo-labs/cloudmapper" \
org.opencontainers.image.demo="https://duo-labs.github.io/cloudmapper/" \
org.opencontainers.image.documentation="https://github.com/cloudkats/docker-tools/cloudmapper/readme.md" \
org.opencontainers.image.licenses="https://github.com/cloudkats/docker-tools/LICENCE" \
org.opencontainers.image.version="${CLOUDMAPPER_VERSION}" \
org.opencontainers.image.tools="cloudmapper"
ENTRYPOINT ["python", "cloudmapper.py", "webserver", "--public"]