-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump frontend dependencies and migrate from CRA to Vite Co-authored-by: Michał Jura <[email protected]>
- Loading branch information
Showing
14 changed files
with
2,814 additions
and
31,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ samples/ | |
index/ | ||
e2e-state | ||
mquery.ini | ||
src/mqueryfront/build | ||
src/mqueryfront/dist | ||
src/mqueryfront/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ mquery.egg-info/ | |
package-lock.json | ||
build/ | ||
postgres/ | ||
node_modules/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
graft src/mqueryfront/build | ||
graft src/mqueryfront/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:16 AS build | ||
FROM node:18 AS build | ||
|
||
RUN npm install -g serve | ||
COPY src/mqueryfront /app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
FROM python:3.10 | ||
FROM node:18 AS build | ||
|
||
RUN npm install -g serve | ||
COPY src/mqueryfront /app | ||
WORKDIR /app | ||
RUN npm install --legacy-peer-deps && npm run build | ||
|
||
WORKDIR /usr/src/app/src | ||
FROM python:3.10 | ||
|
||
RUN apt update; apt install -y cmake | ||
|
||
# mquery and plugin requirements | ||
COPY requirements.txt src/plugins/requirements-*.txt /tmp/ | ||
RUN ls /tmp/requirements*.txt | xargs -i,, pip --no-cache-dir install -r ,, | ||
|
||
CMD pip install -e /usr/src/app && uvicorn mquery.app:app --host 0.0.0.0 --port 5000 --reload | ||
COPY requirements.txt setup.py MANIFEST.in /usr/src/app/ | ||
COPY src /usr/src/app/src/ | ||
COPY --from=build "/app/dist" "/usr/src/app/src/mqueryfront/dist" | ||
RUN pip3 install /usr/src/app | ||
CMD uvicorn mquery.app:app --host 0.0.0.0 --port 5000 --reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.