Skip to content

Not working on windows 11 #129

@mauudev

Description

@mauudev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions