We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e14818d + 6517a77 commit cb7e3abCopy full SHA for cb7e3ab
1 file changed
analyzers/LdapQuery/Dockerfile
@@ -0,0 +1,14 @@
1
+# Builder stage
2
+FROM python:3-slim AS builder
3
+WORKDIR /build
4
+COPY requirements.txt .
5
+RUN test ! -e requirements.txt || pip install --user --no-cache-dir -r requirements.txt
6
+
7
+# Runtime stage
8
+FROM python:3-slim
9
+RUN apt-get update && apt-get install -y --no-install-recommends openssl && rm -rf /var/lib/apt/lists/*
10
+WORKDIR /worker
11
+COPY --from=builder /root/.local /root/.local
12
+COPY . LdapQuery/
13
+ENV PATH=/root/.local/bin:$PATH
14
+ENTRYPOINT ["python", "LdapQuery/ldapQuery.py"]
0 commit comments