forked from opendxl/opendxl-virustotal-service-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 744 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
# Base image from Python 2.7 (slim)
FROM python:2.7-slim
VOLUME ["/opt/dxlvtapiservice-config"]
# Copy service files
COPY . /tmp/build
WORKDIR /tmp/build
# Clean service
RUN python ./clean.py
# Install application package and its dependencies
RUN pip install .
# Cleanup build
RUN rm -rf /tmp/build
################### INSTALLATION END #######################
#
# Run the service.
#
# NOTE: The configuration files for the service must be
# mapped to the path: /opt/dxlvtapiservice-config
#
# For example, specify a "-v" argument to the run command
# to mount a directory on the host as a data volume:
#
# -v /host/dir/to/config:/opt/dxlvtapiservice-config
#
CMD ["python", "-m", "dxlvtapiservice", "/opt/dxlvtapiservice-config"]