Skip to content

Conversation

yang-young
Copy link

The Dockerfile in the document contained an incorrect npm command that caused build failures during the image creation process.
The error appeared in the following lines:

CMD [ -d "node_modules" ] && npm run start --host 0.0.0.0 --poll 1000 || npm run install && npm run start --host 0.0.0.0 --poll 1000

In npm and pnpm start, --host 0.0.0.0 --poll 1000 are additional parameters. If you need to pass these parameters to the actual script, you must use -- to separate them.

Another problem is that the file path is wrong. In the Dockerfile, it is /opt/docusaurus, but here it is /var/docusaurus.

docker run --rm -d -p 3000:3000 -v $(pwd):/var/docusaurus <tag>

@github-actions
Copy link

⚠️ Deployments require the '🚀request-deploy' label

This repository is a forked repository. For security reasons, deployments from forked repositories are not automatic.

To request a deployment, add the '🚀request-deploy' label to this pull request. (Only some members can add labels).

@homotechsual homotechsual added the 🚀request-deploy Adding this label will request a preview build of your PR label Nov 19, 2024
@homotechsual homotechsual self-assigned this Nov 19, 2024
@github-actions
Copy link

⚡ Successfully deployed to Cloudflare Pages!

| 🔨 Latest commit | 0051fbe |
| 🔍 Latest deploy log | https://github.com/DocusaurusCommunity/website/actions/runs/11913191212 |
| 😎 Deploy preview URL | https://22346e33.docusauruscommunitywebsite.pages.dev |
| 🌳 Environment | preview |

@github-actions github-actions bot removed the 🚀request-deploy Adding this label will request a preview build of your PR label Nov 19, 2024
@homotechsual homotechsual merged commit 7cd7530 into DocusaurusCommunity:main Dec 18, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants