Add and serve required libjs libraries at /share/
This commit is contained in:
parent
79baef9c9f
commit
e864869b82
|
@ -10,7 +10,7 @@ CMD ["/bin/sh", "/entrypoint.sh"]
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
&& 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/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
&& rm -rf /var/cache/*
|
&& rm -rf /var/cache/*
|
||||||
|
|
|
@ -12,6 +12,10 @@ server {
|
||||||
try_files $uri @portal;
|
try_files $uri @portal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /share/ {
|
||||||
|
root /usr/share/javascript;
|
||||||
|
}
|
||||||
|
|
||||||
location @portal {
|
location @portal {
|
||||||
proxy_pass http://localhost:${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT};
|
proxy_pass http://localhost:${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT};
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
|
@ -21,6 +21,10 @@ server {
|
||||||
try_files $uri @portal;
|
try_files $uri @portal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /share/ {
|
||||||
|
root /usr/share/javascript;
|
||||||
|
}
|
||||||
|
|
||||||
location @portal {
|
location @portal {
|
||||||
proxy_pass http://localhost:${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT};
|
proxy_pass http://localhost:${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT};
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
Loading…
Reference in New Issue