-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.pipe
48 lines (37 loc) · 1.37 KB
/
Dockerfile.pipe
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
41
42
43
44
45
46
47
48
FROM pytorch/pytorch:1.7.1-cuda11.0-cudnn8-runtime
LABEL org.opencontainers.image.source https://github.com/mood-mapping-muppets/repo
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq \
zstd xz-utils git build-essential wget bash coreutils \
python3 python3-dev python3-pip \
r-base r-base-dev && \
rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --upgrade \
pip==20.2.4 \
setuptools==50.3.2 \
poetry==1.1.4 \
poetry-core==1.0.0
WORKDIR /opt/coviddash
COPY pyproject.toml poetry.lock install_rest.sh ./
RUN poetry export -E usenews \
--without-hashes > requirements.txt && \
sed -i '/pytorch/d' requirements.txt && \
sed -i '/PyYAML/d' requirements.txt && \
python3 -m pip install -r requirements.txt && \
rm requirements.txt && \
./install_rest.sh && \
rm -rf /root/.cache
# First copy only bare minimum to run setup_image
COPY workflow/ ./workflow/
RUN mkdir -p analysis && \
touch analysis/__init__.py
COPY analysis/sentiment_antonym_pair_util.py ./analysis/sentiment_antonym_pair_util.py
RUN mkdir -p /opt/nltk_data
ENV NLTK_DATA=/opt/nltk_data
RUN snakemake --cores 1 fetch_nltk_resources
COPY ingress ./ingress/
COPY analysis/ ./analysis/
COPY mmmbgknow/ ./mmmbgknow/
COPY database/ ./database/
RUN echo "/opt/coviddash" > \
/opt/conda/lib/python3.8/site-packages/coviddash.pth