Docker Community Forums

Share and learn in the Docker community.

Azure functions using python docker file

I have followed the tutorial for the Azure Functions using python. everything wen smooth. for the next step I need to add a C compiled dependency. I just added the C compiler + the dependency script rows. I have edited the Docker file and it now looks like this:


ENV AzureWebJobsScriptRoot=/home/site/wwwroot \

COPY requirements.txt /
RUN pip install -r /requirements.txt

COPY . /home/site/wwwroot

FROM julia:1.3
RUN apt-get update && apt-get install -y gcc g++ && rm -rf /var/lib/apt/lists/*

FROM python:3.7
RUN pip install numpy 

RUN wget && \
  tar -xvzf ta-lib-0.4.0-src.tar.gz && \
  cd ta-lib/ && \
  ./configure --prefix=/usr && \
  make && \
  make install

RUN rm -R ta-lib ta-lib-0.4.0-src.tar.gz

When I build this docker file it look good. but when I run it it just opens up a GCC promp.

What am I doing wrong?