Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions 3.6-cd/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion 3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
37 changes: 37 additions & 0 deletions 3.7_duckling/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]