Not working on windows 11

Author: mauudevCreated Jan 27, 2024Updated Jul 27, 2025

I have installed docker desktop + compose plugin, but when I initialize the compose process it fails with an syntax error:

ps_backend   | ./scripts/wait-for-it.sh: 6: Syntax error: word unexpected (expecting "}")

I changed the entry point from /bin/bash to /bin/sh with no effect. This is how my dockerfile looks like:

FROM python:3.11.3-bullseye

ENV DOCKER_ENV=True
ENV PYTHONPATH=/src
ENV PATH="/root/.local/bin:${PATH}"

WORKDIR /src
COPY . /src
RUN apt update -y && apt upgrade -y && apt install curl -y
RUN curl -sSL https://install.python-poetry.org | python -
RUN poetry install --no-dev
RUN chmod +x ./scripts/starter.sh
RUN chmod +x ./scripts/wait-for-it.sh
RUN chmod +x ./scripts/run-backend.sh

EXPOSE 8000

ENTRYPOINT ["/bin/sh"]

It works with no issues on debian or ubuntu distros, but why is it failing on windows?