-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 831 Bytes
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 831 Bytes
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
# Dockerfile
FROM python:3.7
ARG KILLRVIDEO_DOCKER_IP
ENV KILLRVIDEO_DOCKER_IP ${KILLRVIDEO_DOCKER_IP}
ARG KILLRVIDEO_HOST_IP
ENV KILLRVIDEO_HOST_IP ${KILLRVIDEO_HOST_IP}
ARG KILLRVIDEO_DSE_USERNAME
ENV KILLRVIDEO_DSE_USERNAME ${KILLRVIDEO_DSE_USERNAME}
ARG KILLRVIDEO_DSE_PASSWORD
ENV KILLRVIDEO_DSE_PASSWORD ${KILLRVIDEO_DSE_PASSWORD}
# Install app dependencies
RUN pip install dse-driver
RUN pip install dse-graph
RUN pip install protobuf
RUN pip install grpcio
RUN pip install python-etcd
RUN pip install time-uuid
RUN pip install validate-email
RUN pip install sortedcontainers
RUN pip install nltk
RUN python -m nltk.downloader stopwords
RUN pip install kafka-python
# Create app directory
COPY killrvideo/ /app
WORKDIR /app
ENV PYTHONPATH "${PYTHONPATH}:/${WORKDIR}"
EXPOSE 50101
CMD ["python", "./__init__.py"]