-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
v2 Koval
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,3 +150,4 @@ api_docs/_build/ | |
api_docs/_static/ | ||
cf | ||
locust_file.py | ||
demo/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "cf_internal"] | ||
path = cf_internal | ||
url = https://github.com/NimbleBoxAI/cf_internal.git |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# first stage is to build the client | ||
FROM node:16-alpine3.14 as builder | ||
WORKDIR /app | ||
COPY ./client/package*.json ./client/yarn.lock ./ | ||
RUN yarn install --frozen-lockfile | ||
COPY ./client . | ||
RUN yarn build | ||
ENV NODE_ENV production | ||
|
||
# then we copy over the server | ||
FROM python:3.9 | ||
RUN mkdir /app | ||
|
||
# this is copying over the chainfury engine and install it | ||
COPY ./chainfury /app/chainfury | ||
COPY pyproject.toml /app | ||
COPY README.md /app | ||
WORKDIR /app | ||
RUN python3 -m pip install .\[all\] | ||
WORKDIR / | ||
|
||
# this is copying over the chainfury-internal and installing it | ||
COPY ./cf_internal /app/cf_internal | ||
WORKDIR /app | ||
RUN python3 -m pip install ./cf_internal | ||
WORKDIR / | ||
|
||
# copy over the server files including the server installer, since chainfury is already installed | ||
# it would use the cached version and not try to install it again from pypi | ||
COPY ./server/chainfury_server /app/chainfury_server | ||
COPY ./server/pyproject.toml /app | ||
COPY ./server/README.md /app | ||
WORKDIR /app | ||
RUN python3 -m pip install PyMySQL | ||
RUN python3 -m pip install -e . | ||
WORKDIR / | ||
|
||
# Copy over the files from the client build | ||
RUN rm -rf /app/static | ||
RUN rm -rf /app/templates | ||
COPY --from=builder /app/dist/. /app/chainfury_server/static/. | ||
|
||
WORKDIR /app/chainfury_server | ||
EXPOSE 8000 | ||
CMD ["python3", "server.py", "--host", "0.0.0.0", "--port", "8000", "--pre", "['cf_internal']"] |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
chainfury\_server.api.chains module | ||
=================================== | ||
|
||
.. automodule:: chainfury_server.api.chains | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.