Docker example skips frontend dependencies and hardcodes the port

Open Beginner friendly
#738 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
docker, python, react, vite

Research direction

Read the Docker example in docs/deployment/README.md and check its build stage and start command. Verify that frontend dependencies are installed before nx build and that nx start --port receives $PORT; the example should build from a fresh React scaffold and use a runtime-assigned port. The issue names no test or verification command.

Written by the indexing model from the issue text.

Description

Hi, the Docker example in docs/deployment/README.md runs nx build before installing JavaScript dependencies, so a fresh React scaffold fails with Vite is not installed. Install those dependencies in the build stage, then pass "$PORT" to nx start --port on hosts that assign the port at runtime.

I build Dockhold. The Dockerfile guide covers its runtime port.
https://dockhold.eu/docs/concepts/dockerfiles?ref=forum-github

Want me to send a PR adding a Dockhold example to the Deploy guide?

Dominant language
Python
Stars
11
Forks
6
Avg merge
2h 14m
Merged PRs (30d)
265

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NexyPy/nexy

All issues in NexyPy/nexy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.