Add frontend installation and build steps

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-04-03 19:33:15 -03:00
commit 6c7b20b4e7
2 changed files with 2 additions and 18 deletions

View file

@ -169,6 +169,8 @@ build:
@echo 'Building the project'
@make setup_env
ifdef base
make install_frontendci
make build_frontend
make build_langflow_base
endif
@ -177,8 +179,6 @@ ifdef main
endif
build_langflow_base:
make install_frontendci
make build_frontend
cd src/backend/base && poetry build-rewrite-path-deps --version-pinning-strategy=semver
rm -rf src/backend/base/langflow/frontend

View file

@ -1,16 +0,0 @@
# This file is used by `lc-serve` to build the image.
# Don't change the name of this file.
FROM jinawolf/serving-gateway:${version}
RUN apt-get update \
&& apt-get install --no-install-recommends -y build-essential libpq-dev
COPY . /appdir/
RUN pip install poetry==1.4.0 && cd /appdir && pip install . && \
pip uninstall -y poetry && \
apt-get remove --auto-remove -y build-essential libpq-dev && \
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
ENTRYPOINT [ "jina", "gateway", "--uses", "config.yml" ]