2019-11-02 00:06:57 +00:00
|
|
|
# override this to "nvidia/cuda:10.1-runtime-ubi8" if cuda is desired
|
|
|
|
ARG BASE_IMAGE=registry.access.redhat.com/ubi8/ubi:latest
|
2019-08-30 16:54:03 +00:00
|
|
|
FROM ${BASE_IMAGE}
|
|
|
|
|
|
|
|
MAINTAINER Thingpedia Admins <thingpedia-admins@lists.stanford.edu>
|
|
|
|
|
2019-12-15 01:18:27 +00:00
|
|
|
USER root
|
|
|
|
|
|
|
|
# copy source
|
|
|
|
COPY . /opt/decanlp
|
|
|
|
|
|
|
|
# install basic tools and python3, install dependencies, and then cleanup
|
|
|
|
RUN dnf -y install git gcc gcc-c++ \
|
2019-11-02 00:06:57 +00:00
|
|
|
python3 \
|
|
|
|
python3-numpy \
|
|
|
|
python3-scipy \
|
|
|
|
python3-pip \
|
|
|
|
python3-devel \
|
2019-12-15 01:18:27 +00:00
|
|
|
&& pip3 install -e /opt/decanlp \
|
|
|
|
&& rm -fr /root/.cache \
|
|
|
|
&& dnf -y remove gcc gcc-c++ \
|
2019-11-02 00:06:57 +00:00
|
|
|
&& rm -fr /var/cache/dnf
|
2019-08-30 16:54:03 +00:00
|
|
|
|
2019-08-30 19:25:54 +00:00
|
|
|
# add user decanlp
|
|
|
|
RUN useradd -ms /bin/bash -r decanlp
|
2019-08-30 16:54:03 +00:00
|
|
|
USER decanlp
|
|
|
|
WORKDIR /home/decanlp
|
|
|
|
ENTRYPOINT ["decanlp"]
|