Socket.io dont work when using Docker

so here’s my Dockerfile

FROM python:3.8-slim as base

RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
# required by psycopg2 at build and runtime
libpq-dev \
# required for health check
curl \
&& apt-get autoremove -y

FROM base as builder

RUN apt-get update -qq && \
apt-get install -y --no-install-recommends \
build-essential \
wget \
openssh-client \
graphviz-dev \
pkg-config \
git-core \
openssl \
libssl-dev \
libffi6 \
libffi-dev \
libpng-dev

# install poetry
# keep this in sync with the version in pyproject.toml and Dockerfile
ENV POETRY_VERSION 1.1.7
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
ENV PATH "/root/.poetry/bin:/opt/venv/bin:${PATH}"

# copy files
COPY . /build/

# change working directory
WORKDIR /build

# install dependencies
RUN python -m venv /opt/venv && \
. /opt/venv/bin/activate && \
pip install --no-cache-dir -U 'pip >20' && \
poetry install --no-dev --no-root --no-interaction && \
poetry build -f wheel -n && \
pip install --no-deps dist/*.whl && \
rm -rf dist *.egg-info

# start a new build stage
FROM base as runner

# copy everything from /opt
COPY --from=builder /opt/venv /opt/venv

# make sure we use the virtualenv
ENV PATH="/opt/venv/bin:$PATH"

# update permissions & change user to not run as root
COPY models /app/models
COPY . /app/
WORKDIR /app
RUN chgrp -R 0 /app && chmod -R g=u /app
USER 1001

# create a volume for temporary data
VOLUME [/tmp]

# change shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# the entry point
EXPOSE 5005/tcp
EXPOSE 5005/udp
ENTRYPOINT ["rasa"]
CMD ["run","-m","models","--enable-api","--cors","'*'","--debug"] 

and my running command

docker run -p 5005:5005 <name-tag>

and when i try to run it, it doesnt connect on my local server, and when i access it at http://127.0.0.1:5005/socket.io it returns

"The client is using an unsupported version of the Socket.IO or Engine.IO protocols"

does anyone have a solution to this topic?

Environment

Poetry 1.1.7
Rasa 2.8.0

@henseljahja Change and try

In this command:

CMD ["run","-m","models","--enable-api","--cors","'*'","--debug"]

Change to this command:

CMD ["run", "-m", "models", "--enable-api", "--cors", "*", "--debug"]

* without single quotes. I hope it will solve you issue. Good Luck!

@henseljahja Did it solved your issue? @henseljahja I asked you 2 times already. Thanks Good Luck!

@henseljahja can you please close this thread with the solution for others.