root: attempt to build static image without django's collectstatic (#360)

* root: attempt to build static image without django's collectstatic

* web: move static dockerfile to /web

* web: fix dockerfile path

* web: improve image size by not copying node_modules
This commit is contained in:
Jens L
2020-12-02 21:23:07 +01:00
committed by GitHub
parent c17623323a
commit 6164db5a18
9 changed files with 48 additions and 97 deletions

View File

@ -9,6 +9,10 @@ import copy from "rollup-plugin-copy";
import externalGlobals from "rollup-plugin-external-globals";
const resources = [
{ src: "node_modules/@patternfly/patternfly/patternfly.css", dest: "dist/" },
{ src: "node_modules/@patternfly/patternfly/patternfly-addons.css", dest: "dist/" },
{ src: "node_modules/@fortawesome/fontawesome-free/css/fontawesome.min.css", dest: "dist/" },
{ src: "node_modules/@patternfly/patternfly/assets/*", dest: "dist/assets/" },
{ src: "src/index.html", dest: "dist" },
{ src: "src/passbook.css", dest: "dist" },
{ src: "src/assets/*", dest: "dist/assets" },