| 1 |
FROM python:3.9 |
| 2 |
|
| 3 |
ARG tornado |
| 4 |
ENV APPDIR /usr/src/app/ |
| 5 |
ENV TORNADO=$tornado |
| 6 |
WORKDIR ${APPDIR} |
| 7 |
|
| 8 |
# Application installation |
| 9 |
COPY requirements-dev.txt requirements-tests.txt requirements.txt setup.py setup.cfg ${APPDIR} |
| 10 |
COPY jaeger_client ${APPDIR}/jaeger_client/ |
| 11 |
COPY idl ${APPDIR}/idl/ |
| 12 |
|
| 13 |
# RUN pip install -U 'pip>=7,<8' |
| 14 |
RUN pip install --no-cache-dir -r requirements-dev.txt -r requirements-tests.txt -r requirements.txt && \ |
| 15 |
python setup.py install && \ |
| 16 |
pip install --no-cache-dir "tornado${TORNADO}" |
| 17 |
|
| 18 |
COPY crossdock ${APPDIR}/crossdock/ |
| 19 |
COPY crossdock/setup_crossdock.py ${APPDIR} |
| 20 |
RUN python setup_crossdock.py install |
| 21 |
|
| 22 |
# TODO Remove this after the tchannel-python crossdock is no longer a package |
| 23 |
RUN rm -rf /usr/local/lib/python3.9/site-packages/crossdock |
| 24 |
|
| 25 |
CMD ["crossdock"] |
| 26 |
EXPOSE 8080-8082 |