forked from src-d/style-analyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 801 Bytes
/
Dockerfile
File metadata and controls
22 lines (19 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM srcd/lookout-sdk-ml:0.14.0
COPY requirements.txt style-analyzer/requirements.txt
RUN apt-get update && \
apt-get install -y --no-install-suggests --no-install-recommends \
libgomp1 libsnappy1v5 libsnappy-dev gcc g++ make git python3-dev \
libxml2 libxml2-dev zlib1g-dev && \
cd style-analyzer && \
pip3 install --no-cache-dir -r requirements.txt && \
pip3 uninstall -y pyspark && \
apt-get remove -y python3-dev libsnappy-dev gcc g++ make libxml2-dev zlib1g-dev && \
apt-get remove -y .*-doc >/dev/null && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY . style-analyzer
RUN cd style-analyzer && \
pip3 install -e . && \
rm -rf /usr/local/lib/python3.6/dist-packages/pyspark/
ENTRYPOINT ["analyzer"]