diff --git a/3.6-cd/Dockerfile b/3.6-cd/Dockerfile new file mode 100644 index 0000000..f61a7d5 --- /dev/null +++ b/3.6-cd/Dockerfile @@ -0,0 +1,14 @@ +FROM amazonlinux + +MAINTAINER paridhi "paridhimnnit@gmail.com" + +# setting up python3.6 +RUN yum update -y amazon-linux-extras && amazon-linux-extras install -y python3 && yum install -y libXext libSM libXrender wget unzip + +# setting proper alias for python3 and pip3 and setting basic packages +RUN pip3 install --upgrade pip && pip3 install spacy && python3 -m spacy download en + +# setting up chrome driver +RUN curl https://intoli.com/install-google-chrome.sh | bash +RUN wget https://chromedriver.storage.googleapis.com/2.37/chromedriver_linux64.zip +RUN unzip chromedriver_linux64.zip && mv chromedriver /usr/bin/chromedriver && rm -f chromedriver_linux64.zip diff --git a/3.6/Dockerfile b/3.6/Dockerfile index 6625f44..04fb389 100644 --- a/3.6/Dockerfile +++ b/3.6/Dockerfile @@ -3,7 +3,7 @@ FROM amazonlinux:2 MAINTAINER paridhi "paridhimnnit@gmail.com" # setting up python3.6 -RUN yum update -y amazon-linux-extras && amazon-linux-extras install -y python3 +RUN yum update -y amazon-linux-extras && amazon-linux-extras install -y python3 && yum install -y libXext libSM libXrender # setting proper alias for python3 and pip3 and setting basic packages RUN pip3 install --upgrade pip && pip3 install spacy && python3 -m spacy download en diff --git a/3.7_duckling/Dockerfile b/3.7_duckling/Dockerfile new file mode 100644 index 0000000..f2ff110 --- /dev/null +++ b/3.7_duckling/Dockerfile @@ -0,0 +1,37 @@ +FROM haskell:8-buster AS builder + +RUN apt-get update -qq && \ + apt-get install -qq -y libpcre3 libpcre3-dev build-essential --fix-missing --no-install-recommends && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +RUN mkdir /log + +WORKDIR /duckling + +ADD . . + +ENV LANG=C.UTF-8 + +RUN stack setup + +ADD . . + +# NOTE:`stack build` will use as many cores as are available to build +# in parallel. However, this can cause OOM issues as the linking step +# in GHC can be expensive. If the build fails, try specifying the +# '-j1' flag to force the build to run sequentially. +RUN stack install + +FROM python:3.7.9 + +ENV LANG C.UTF-8 + +RUN apt-get update -qq && \ + apt-get install -qq -y libpcre3 libgmp10 --no-install-recommends && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +COPY --from=builder /root/.local/bin/duckling-example-exe /usr/local/bin/ + +CMD ["python3"] \ No newline at end of file