FROM python:3
LABEL maintainer="Alexander Lercher"

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

EXPOSE 5000

WORKDIR /app
COPY src/transaction-hub-out/event-detection-microservice/app/ /app/
RUN chmod a+x main.py

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