ben
5bc63fb30f
ben/synapse-admin-docker/pipeline/head This commit looks good
Details
|
||
---|---|---|
deb | ||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
Jenkinsfile | ||
README.md | ||
build.sh | ||
vite.config.ts |
README.md
synapse-admin-docker
Overview
Builds and packages Awesome-Technologies/synapse-admin
.
Build
Since its just a bunch of .html
files, the base url (or prefix) needs to be
set at build time, so we need to build this for source to be able to change it.
Also because its just a bunch of .html
files, theres no need for the nginx
webserver in the upstream Docker image, so we just package the generated files
up in a .deb
package.
This used to be build with the same method as hydrogen-docker
,
but since then synapse-admin has changed. Now we need to override the vite.config.ts
file in order to prevent the build processfrom tryingt to shell out
to git
for no reason at all, and the base url is set with the --base
argument to vite build
(called through yarn
).
Nginx config
location /synapse-admin/ {
alias /usr/local/share/synapse-admin/;
charset utf-8;
index index.html;
autoindex off;
}