-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (50 loc) · 1.36 KB
/
Dockerfile
File metadata and controls
59 lines (50 loc) · 1.36 KB
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
49
50
51
52
53
54
55
56
57
58
59
FROM python:3.9-slim
MAINTAINER brian <brian@planet.com>
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# TODO: keep requirements in one place
RUN pip install \
'blinker>=1.4' \
'boto3==1.35.41' \
'botocore==1.35.64' \
'click>=5.1' \
'datalake<2' \
'Flask>=0.10.1' \
'flask-swagger>=0.2.14' \
'memoized_property>=1.0.1' \
'pyinotify>=0.9.4' \
'python-dateutil>=2.4.2' \
'python-dotenv>=0.1.3' \
'pytz>=2015.4' \
'raven>=5.0.0' \
'requests>=2.5' \
'sentry-sdk[flask]>=0.19.5' \
'simplejson>=3.3.1' \
'six>=1.10.0' \
# test requirements
'flake8>=2.5.0,<4.1' \
'freezegun<1' \
'moto>=5,<6' \
'pytest<8' \
'pytest-cov>=2.5.1,<4' \
'pytest-xdist' \
'responses<0.22.0' \
'tox>4,<5'
RUN mkdir -p /opt/
COPY . /opt/
# Take care to install clients such that the source code can be mounted into
# the container and used for development. That is, the python paths and paths
# to console scripts Just Work (TM)
ENV PYTHONPATH=/opt/client:/opt/ingester:/opt/api
RUN for d in ingester api; do \
cd /opt/$d && \
python setup.py develop -s /usr/local/bin \
--egg-path ../../../../../opt/$d/ \
-d /usr/local/lib/python3.9/site-packages/ \
--no-deps; \
done
ARG VERSION=unspecified
ENV VERSION=$VERSION
COPY version.txt /
WORKDIR /opt
ENTRYPOINT ["/opt/docker_entry.sh"]