hcengineering / platform

Huly — All-in-One Project Management Platform (alternative to Linear, Jira, Slack, Notion, Motion)
https://huly.io
Eclipse Public License 2.0
5.38k stars 478 forks source link

Docker deployment #5722

Open Bae360 opened 1 month ago

Bae360 commented 1 month ago

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

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

namanvats commented 3 weeks ago

@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