Skip to content

Commit

Permalink
[import-external-reference] Change distribution to bookworm as playrw…
Browse files Browse the repository at this point in the history
…right cannot be used with alpine (#2848)
  • Loading branch information
helene-nguyen authored Oct 28, 2024
1 parent b91853d commit 170a581
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal-enrichment/import-external-reference/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
FROM python:3.12-alpine
FROM python:3.12-bookworm
ENV CONNECTOR_TYPE=INTERNAL_ENRICHMENT

# Copy the connector
COPY src /opt/opencti-connector-import-external-reference

# Install Python modules
# hadolint ignore=DL3003
RUN apk update && apk upgrade && \
apk --no-cache add git build-base libmagic libffi-dev libxml2-dev libxslt-dev cargo libsm-dev libxrender libxext-dev && \
RUN apt-get update && \
apt-get install -y git build-essential libmagic-dev libffi-dev libxml2-dev libxslt-dev libssl-dev cargo libjpeg-dev zlib1g-dev libxkbcommon0 libgbm1 libnss3 libnspr4 libdbus-1-3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libatspi2.0-0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libasound2 && \
cd /opt/opencti-connector-import-external-reference && \
pip3 install --no-cache-dir -r requirements.txt && \
playwright install --with-deps && \
apk del git build-base
playwright install

# Expose and entrypoint
COPY entrypoint.sh /
Expand Down

0 comments on commit 170a581

Please sign in to comment.