FROM python:3
LABEL maintainer="Alexander Lercher"

RUN apt-get update

EXPOSE 5000

WORKDIR /app

COPY src/transaction-hub-in/trace-retrieval-microservice/app/requirements.txt /app/
RUN pip install -r requirements.txt

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

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