-
Notifications
You must be signed in to change notification settings - Fork 54
/
Dockerfile.cpu
19 lines (14 loc) · 709 Bytes
/
Dockerfile.cpu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This is a dockerfile that can be used to easily host and create an environment for specter embeddings.
FROM python:3.7-slim
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install git wget && apt-get -y install --upgrade build-essential
RUN git clone https://github.com/allenai/specter.git
WORKDIR "specter"
RUN wget https://ai2-s2-research-public.s3-us-west-2.amazonaws.com/specter/archive.tar.gz && tar -xzvf archive.tar.gz
RUN apt-get -y install --upgrade gcc
RUN pip install --upgrade pip cython
# A different version of allenNLP is installed to resolve dependency issues.
RUN pip install allennlp==2.4.0
RUN pip install -r requirements.txt
RUN python setup.py install
ENTRYPOINT /bin/bash