-
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.
Fix static file dir in the dev builds (#415)
- Loading branch information
Showing
2 changed files
with
4 additions
and
12 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 |
---|---|---|
@@ -1,20 +1,11 @@ | ||
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 | ||
|
||
FROM python:3.10 | ||
|
||
WORKDIR /usr/src/app/src | ||
|
||
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 ,, | ||
|
||
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 | ||
CMD pip install -e /usr/src/app && 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