Skip to content

Commit ebef537

Browse files
authored
Add the ICAP client in the Docker image (#62)
Having an ICAP client available to the scanner is a v.useful thing
1 parent 686cae0 commit ebef537

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ ARG PYTHON_VERSION=3.9
22

33
FROM docker.io/python:${PYTHON_VERSION}-slim
44

5-
# Install libmagic. We don't need to install libolm, because we're installing it with a
5+
# Install libmagic & other useful tools.
6+
# We don't need to install libolm, because we're installing it with a
67
# wheel from gitlab.matrix.org later, which comes with libolm already compiled.
7-
RUN apt-get update -qq && apt-get install -qq libmagic1
8+
RUN apt-get update -qq && apt-get install -qq libmagic1 c-icap && rm -rf /var/lib/apt/lists/*
89

910
# Copy the necessary project files into the image.
1011
COPY setup.cfg pyproject.toml README.md /
@@ -22,4 +23,4 @@ RUN mkdir /data
2223
WORKDIR /data
2324

2425
# Start the service using user-provided configuration.
25-
ENTRYPOINT ["python", "-m", "matrix_content_scanner.mcs", "-c", "/data/config.yaml"]
26+
ENTRYPOINT ["python", "-m", "matrix_content_scanner.mcs", "-c", "/data/config.yaml"]

0 commit comments

Comments
 (0)