# setting the base-image
FROM python:3.12-slim

# importing the action
COPY . /action

# running the script.sh
RUN [ -f /action/script.sh ] && sh /action/script.sh || true

# installing the requirements
RUN pip install -U pip -r /action/requirements.txt

# running the main.py file
CMD [ "python", "/action/main.py" ]
