forked from bblfsh/python-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.tpl
More file actions
23 lines (17 loc) · 738 Bytes
/
Dockerfile.tpl
File metadata and controls
23 lines (17 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:3.7
MAINTAINER source{d}
ARG DEVDEPS=native/dev_deps
ARG CONTAINER_DEVDEPS=/tmp/dev_deps
ARG PYDETECTOR_VER=0.14.2
RUN apk add --no-cache --update python python3 py-pip py2-pip git
ADD native/python_package /tmp/python_driver
ADD ${DEVDEPS} ${CONTAINER_DEVDEPS}
ENV ENV_DEVDEPS=${DEVDEPS}
ENV ENV_PYDETECTOR_VER=${PYDETECTOR_VER}
RUN pip2 install -U ${CONTAINER_DEVDEPS}/python-pydetector || pip2 install pydetector-bblfsh==${PYDETECTOR_VER}
RUN pip3 install -U ${CONTAINER_DEVDEPS}/python-pydetector || pip3 install pydetector-bblfsh==${PYDETECTOR_VER}
RUN yes|rm -rf ${CONTAINER_DEVDEPS}
RUN pip3 install /tmp/python_driver
RUN yes|rm -rf /tmp/python_driver
ADD build /opt/driver
ENTRYPOINT ["/opt/driver/bin/driver"]