forked from dhdhagar/prob-ent-resolution
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
40 lines (31 loc) · 911 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM python:3.7-stretch
# install base packages
RUN apt-get clean \
&& apt-get update --fix-missing \
&& apt-get install -y \
git \
curl \
gcc \
g++ \
build-essential \
wget \
awscli
WORKDIR /work
# install python packages
COPY requirements.in .
# copy over the data file
COPY data/s2and_name_tuples.txt ./data/
COPY data/path_config.json ./data/
# add the code as the final step so that when we modify the code
# we don't bust the cached layers holding the dependencies and
# system packages.
COPY s2and/ s2and/
COPY scripts/ scripts/
COPY tests/ tests/
COPY .flake8 .flake8
RUN pip install -r requirements.in
COPY setup.py .
RUN python setup.py develop
RUN aws s3 cp --no-sign-request s3://ai2-s2-research-public/s2and-release/lid.176.bin data/
RUN aws s3 cp --no-sign-request s3://ai2-s2-research-public/s2and-release/name_counts.pickle data/
CMD [ "/bin/bash" ]