File: Dockerfile

package info (click to toggle)
python-jaeger-client 4.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 940 kB
  • sloc: python: 5,578; makefile: 93; sh: 26; awk: 16
file content (26 lines) | stat: -rw-r--r-- 802 bytes parent folder | download | duplicates (2)
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
FROM python:3.9

ARG tornado
ENV APPDIR /usr/src/app/
ENV TORNADO=$tornado
WORKDIR ${APPDIR}

# Application installation
COPY requirements-dev.txt requirements-tests.txt requirements.txt setup.py setup.cfg ${APPDIR}
COPY jaeger_client ${APPDIR}/jaeger_client/
COPY idl ${APPDIR}/idl/

# RUN pip install -U 'pip>=7,<8'
RUN pip install --no-cache-dir -r requirements-dev.txt -r requirements-tests.txt -r requirements.txt && \
    python setup.py install && \
    pip install --no-cache-dir "tornado${TORNADO}"

COPY crossdock ${APPDIR}/crossdock/
COPY crossdock/setup_crossdock.py ${APPDIR}
RUN python setup_crossdock.py install

# TODO Remove this after the tchannel-python crossdock is no longer a package
RUN rm -rf /usr/local/lib/python3.9/site-packages/crossdock

CMD ["crossdock"]
EXPOSE 8080-8082