4 # Set the working directory to /src/hdfs-writer
5 WORKDIR /src/inferenceApp
8 RUN mkdir /librdkafka-dir && cd /librdkafka-dir
9 RUN git clone https://github.com/edenhill/librdkafka.git && \
11 ./configure --prefix /usr && \
15 #RUN export PYTHONPATH="/usr/bin/python3:/src/python-kafkaconsumer-inference-app/"
17 # copy the requirements file used for dependencies
18 COPY requirements.txt .
20 # Install any needed packages specified in requirements.txt
21 RUN pip install --trusted-host pypi.python.org -r requirements.txt
23 RUN pip install confluent-kafka
24 RUN pip install python-dateutil
26 # Install ptvsd for debugging
31 # Copy the rest of the working directory contents into the container at /app
34 # Start the server when the container launches
35 CMD ["python3", "-m", "ptvsd", "--host", "localhost", "--port", "5000", "--wait", "/src/inferenceApp/main.py"]