Skip to content

Commit cb7e3ab

Browse files
Merge pull request #1444 from TheHive-Project/ldapquery-dockerfile-openssl-patch
Add Dockerfile with openssl
2 parents e14818d + 6517a77 commit cb7e3ab

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

analyzers/LdapQuery/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)