genienlp/dockerfiles/Dockerfile

34 lines
990 B
Docker
Raw Normal View History

# override this to "nvidia/cuda:10.1-runtime-ubi8" if cuda is desired
ARG BASE_IMAGE=registry.access.redhat.com/ubi8/ubi:latest
FROM ${BASE_IMAGE}
MAINTAINER Thingpedia Admins <thingpedia-admins@lists.stanford.edu>
USER root
# copy source
2020-01-29 02:04:25 +00:00
COPY . /opt/genienlp
# install basic tools and python3, install dependencies, and then cleanup
2020-12-30 17:45:23 +00:00
RUN dnf -y install git gcc gcc-c++ make cmake && \
dnf -y module enable python38 \
&& dnf -y install python38 \
python38-devel \
python38-pip \
python38-wheel \
&& pip3 install --upgrade pip \
&& pip3 install --use-feature=2020-resolver awscli \
&& pip3 install --use-feature=2020-resolver -e /opt/genienlp \
2021-03-16 20:11:42 +00:00
&& python3 -m spacy download en_core_web_sm \
&& rm -fr /root/.cache \
2020-12-16 08:04:26 +00:00
&& dnf -y remove gcc gcc-c++ make cmake \
&& rm -fr /var/cache/dnf
2021-02-05 01:35:29 +00:00
2020-01-29 02:04:25 +00:00
# add user genienlp
RUN useradd -ms /bin/bash -r genienlp
USER genienlp
2021-02-05 20:14:59 +00:00
2020-01-29 02:04:25 +00:00
WORKDIR /home/genienlp
2021-02-05 20:14:59 +00:00
ENTRYPOINT ["/opt/genienlp/dockerfiles/start.sh"]