Add and serve required libjs libraries at /share/

This commit is contained in:
Matthew Wild 2021-01-22 17:03:16 +00:00
parent 79baef9c9f
commit e864869b82
3 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,7 @@ CMD ["/bin/sh", "/entrypoint.sh"]
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
tini nginx supervisor gettext-base \
tini nginx supervisor gettext-base libjs-bootstrap4 libjs-jquery \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get autoremove -y \
&& rm -rf /var/cache/*

View File

@ -12,6 +12,10 @@ server {
try_files $uri @portal;
}
location /share/ {
root /usr/share/javascript;
}
location @portal {
proxy_pass http://localhost:${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT};
proxy_set_header Host $host;

View File

@ -21,6 +21,10 @@ server {
try_files $uri @portal;
}
location /share/ {
root /usr/share/javascript;
}
location @portal {
proxy_pass http://localhost:${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT};
proxy_set_header Host $host;