# start by pulling the python image
FROM labs.etsi.org:5050/ocf/capif/python:3-slim-bullseye

# copy the requirements file into the image
COPY ./requirements.txt /app/requirements.txt

# switch working directory
WORKDIR /app

# install the dependencies and packages in the requirements file
RUN pip install -r requirements.txt

# copy every content from the local file to the image
COPY . /app

EXPOSE 9100

# configure the container to run in an executed manner
ENTRYPOINT [ "python" ]

CMD ["mock_server.py" ]