FROM node:20.11.0
RUN npm install -g @microsoft/rush
WORKDIR /app
COPY . .
RUN sh ./scripts/presetup-rush.sh
RUN sh ./scripts/build.sh
RUN sh ./scripts/create-workspace.sh
EXPOSE 3000
CMD ["rush", "docker:up"]
Expected behaviour
The app to be up and running
Actual behaviour
=> ERROR [5/7] RUN sh ./scripts/presetup-rush.sh
[5/7] RUN sh ./scripts/presetup-rush.sh:
0.935 sh: 0: cannot open ./scripts/presetup-rush.sh: No such file
Dockerfile:49
47 |
48 | # Exécuter les scripts de pré-configuration et d'installation
49 | >>> RUN sh ./scripts/presetup-rush.sh
50 |
51 | # Exécuter les commandes rush nécessaires
ERROR: failed to solve: process "/bin/sh -c sh ./scripts/presetup-rush.sh" did not complete successfully: exit code: 2
@Bae360
You are creating a separate Dockerfile if that dockerfile is in the root directory then it should only use /scripts/presetup-rush.sh similar for other script files too
I am trying to install in a container the not huly-selfhost version
Your environment
Steps to reproduce
clone the repo git clone https://github.com/hcengineering/platform.git app
create a Dockerfile
Expected behaviour
The app to be up and running
Actual behaviour
=> ERROR [5/7] RUN sh ./scripts/presetup-rush.sh