chore: Update Dockerfile to remove frontend build artifacts
This commit is contained in:
parent
bc86fde139
commit
69fad76281
1 changed files with 0 additions and 8 deletions
|
|
@ -1,13 +1,6 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
# Keep this syntax directive! It's used to enable Docker BuildKit
|
# Keep this syntax directive! It's used to enable Docker BuildKit
|
||||||
|
|
||||||
FROM node:20-bookworm-slim as builder-node
|
|
||||||
WORKDIR /app
|
|
||||||
COPY src/frontend/package.json src/frontend/package-lock.json ./
|
|
||||||
RUN npm install
|
|
||||||
COPY src/frontend/ ./
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# BUILDER-BASE
|
# BUILDER-BASE
|
||||||
|
|
@ -56,7 +49,6 @@ COPY pyproject.toml poetry.lock README.md ./
|
||||||
COPY src/ ./src
|
COPY src/ ./src
|
||||||
COPY scripts/ ./scripts
|
COPY scripts/ ./scripts
|
||||||
RUN python -m pip install requests --user && cd ./scripts && python update_dependencies.py
|
RUN python -m pip install requests --user && cd ./scripts && python update_dependencies.py
|
||||||
COPY --from=builder-node /app/build ./src/backend/base/langflow/frontend
|
|
||||||
RUN $POETRY_HOME/bin/poetry lock --no-update \
|
RUN $POETRY_HOME/bin/poetry lock --no-update \
|
||||||
&& $POETRY_HOME/bin/poetry build -f wheel \
|
&& $POETRY_HOME/bin/poetry build -f wheel \
|
||||||
&& $POETRY_HOME/bin/poetry run pip install dist/*.whl --force-reinstall
|
&& $POETRY_HOME/bin/poetry run pip install dist/*.whl --force-reinstall
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue