improvement: Frontend Dockerfile updated so that aseests in public folder loads on the website.
This commit is contained in:
@@ -26,6 +26,8 @@ https://nudentic.ir
|
||||
|
||||
`:latest` is **staging only** (wixur.ir baked in). Production compose must pin `TAG=v1.0.1`.
|
||||
|
||||
**Tags are immutable.** CI clones `--branch $tag`. Do not move/reuse an existing `v*` to pick up a Dockerfile or copy fix — cut a new version. The frontend standalone image must `COPY` `public/` (`frontend/Dockerfile`); without it, `/prosthesis-catalog/*.svg` 404s.
|
||||
|
||||
### One-time on the Linux server
|
||||
|
||||
1. **HTTP registry** — Gitea is `http://wixur.ir:3000`. In `/etc/docker/daemon.json`:
|
||||
@@ -136,7 +138,7 @@ This pushes:
|
||||
- `dyolink/dyolink-backend:latest`
|
||||
- `dyolink/dyolink-frontend:latest`
|
||||
|
||||
**When to rebuild:** domain changes, frontend env (`NEXT_PUBLIC_*`) changes, or new app release.
|
||||
**When to rebuild:** domain changes, frontend env (`NEXT_PUBLIC_*`) changes, files under `frontend/public/`, or a new app release.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user