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:

FROM mcr.microsoft.com/azure-functions/python:3.0-python3.7

ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
    AzureFunctionsJobHost__Logging__Console__IsEnabled=true

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 http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \
  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?

Thanks