I have a service running on http://localhost:8123
that I'd like to reach from inside my docker container.
This is the Dockerfile I used for creating the image
FROM python:3.9-alpine
WORKDIR /usr/local/bin/code
COPY . /usr/local/bin/code
RUN python -m pip install --upgrade pip
RUN pip install pipenv
RUN pipenv install --system --deploy
CMD ["/bin/sh"]
The service is listening on port 8123 on the host, and the container needs to send HTTP requests to there, how would that be done?
Thanks!