root: fix static docker's rollup build
This commit is contained in:
parent
cf6ce9c915
commit
9df00e09a4
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"build": "rollup -c ./rollup.config.js",
|
||||
"watch": "rollup -c -w"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -36,8 +36,10 @@ ENV PASSBOOK_POSTGRESQL__USER=passbook
|
|||
ENV PASSBOOK_POSTGRESQL__PASSWORD="EK-5jnKfjrGRm<77"
|
||||
RUN ./manage.py collectstatic --no-input
|
||||
|
||||
FROM node as npm-packager
|
||||
FROM node as npm-builder
|
||||
|
||||
COPY --from=static-build /app/static/src /static/src
|
||||
COPY --from=static-build /app/static/rollup.config.js /static/rollup.config.js
|
||||
COPY --from=static-build /app/static/package.json /static/package.json
|
||||
COPY --from=static-build /app/static/package-lock.json /static/package-lock.json
|
||||
|
||||
|
@ -47,4 +49,5 @@ FROM nginx
|
|||
|
||||
COPY --from=static-build /app/static /usr/share/nginx/html/static
|
||||
COPY --from=static-build /app/static/robots.txt /usr/share/nginx/html/robots.txt
|
||||
COPY --from=npm-packager /static/node_modules /usr/share/nginx/html/static/node_modules
|
||||
COPY --from=npm-builder /static/node_modules /usr/share/nginx/html/static/node_modules
|
||||
COPY --from=npm-builder /static/passbook/passbook.js* /usr/share/nginx/html/static/passbook/
|
||||
|
|
|
@ -6036,12 +6036,12 @@ definitions:
|
|||
- login
|
||||
- login_failed
|
||||
- logout
|
||||
- sign_up
|
||||
- authorize_application
|
||||
- user_write
|
||||
- suspicious_request
|
||||
- password_set
|
||||
- invitation_created
|
||||
- invitation_used
|
||||
- authorize_application
|
||||
- source_linked
|
||||
- impersonation_started
|
||||
- impersonation_ended
|
||||
|
|
Reference in New Issue