mirror of
https://github.com/hanzoai/pkg.git
synced 2026-10-30 18:24:07 +00:00
Both were addressed as basenames in the theme's static dir, and neither is read from there. The logo is resolved against the process CWD (/opt/verdaccio), so "hanzo-mark.svg" pointed at a file that does not exist; verdaccio drops an unreadable logo to undefined and renders logo:"" with no mark and no error. The tab icon never consults the theme at all — an app-level route for /-/static/favicon.ico answers ahead of it and streams web.favicon, which was unset, so the stock icon inside verdaccio won every request. Both now name an absolute path under /verdaccio/web, which verdaccio reads itself and republishes under /-/static/. One home, outside the theme package, so a verdaccio bump cannot move it.
21 lines
735 B
Docker
21 lines
735 B
Docker
FROM verdaccio/verdaccio:5.33.0
|
|
|
|
USER root
|
|
# Store plugin: packages live on hanzoai/s3 (s3.hanzo.svc), zero local disk.
|
|
RUN npm install --prefix /verdaccio/plugins [email protected] \
|
|
&& chown -R $VERDACCIO_USER_UID:root /verdaccio/plugins
|
|
|
|
COPY conf/config.yaml /verdaccio/conf/config.yaml
|
|
|
|
# config.yaml names both marks by absolute path, so they need a home that is
|
|
# stable across a verdaccio bump. Not the theme's static dir: nothing reads the
|
|
# mark from there, and the tab icon is answered before that dir is consulted.
|
|
COPY web/ /verdaccio/web/
|
|
|
|
USER $VERDACCIO_USER_UID
|
|
|
|
EXPOSE 4873
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD wget -qO- http://localhost:4873/-/ping || exit 1
|