Skip to content

Commit

Permalink
updated the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 committed Jul 18, 2023
1 parent d9e3c3b commit 84e2bff
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
FROM python:3.10-slim-buster
FROM python:3.11-slim-buster

ENV LIBRDKAFKA_VERSION 1.9.2

WORKDIR /app

RUN apt update && apt install -y wget make g++ libssl-dev
RUN apt update && apt install -y wget make g++ libssl-dev autoconf automake libtool curl
RUN wget https://github.com/edenhill/librdkafka/archive/v${LIBRDKAFKA_VERSION}.tar.gz && \
tar xvzf v${LIBRDKAFKA_VERSION}.tar.gz && \
(cd librdkafka-${LIBRDKAFKA_VERSION}/ && ./configure && make && make install && ldconfig)

COPY . /app

ENV CONFIG_PATH /app/config.yaml
RUN make install


RUN chmod +x ./deployment/docker/install_req.sh
RUN ./deployment/docker/install_req.sh
RUN pip3 install confluent-kafka

ENTRYPOINT python3 main.py --integrations-config=$CONFIG_PATH
ENTRYPOINT make run

0 comments on commit 84e2bff

Please sign in to comment.