FROM python:3
LABEL maintainer="Alexander Lercher"

ENV http_proxy http://proxy.uni-klu.ac.at:3128/
ENV https_proxy http://proxy.uni-klu.ac.at:3128/

RUN apt-get update
RUN pip install flask
RUN pip install connexion[swagger-ui]
RUN pip install pika
RUN pip install pymongo
RUN pip install deprecated

EXPOSE 5000

WORKDIR /app
COPY transaction-hub-in/trace-retrieval-microservice/app/ /app/
COPY modules/ /app/
RUN chmod a+x main.py

CMD ["python", "./main.py"]