Skip to content

Commit 0145e55

Browse files
authored
fix: Use locally built feast-ui package in dev feature-server image (feast-dev#4998)
force feast-ui to be built locally Signed-off-by: Tommy Hughes <[email protected]>
1 parent 5ef3738 commit 0145e55

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
FROM registry.access.redhat.com/ubi8/python-311:1
22

3+
USER 0
4+
RUN npm install -g yarn yalc && rm -rf .npm
5+
USER default
6+
37
COPY --chown=default . ${APP_ROOT}/src
8+
9+
WORKDIR ${APP_ROOT}/src/ui
10+
RUN npm install && \
11+
npm run build:lib-dev && \
12+
rm -rf node_modules && \
13+
npm cache clean --force
14+
15+
WORKDIR ${APP_ROOT}/src/sdk/python/feast/ui
16+
RUN yalc add @feast-dev/feast-ui && \
17+
git diff package.json && \
18+
yarn install && \
19+
npm run build --omit=dev && \
20+
rm -rf node_modules && \
21+
npm cache clean --force && \
22+
yarn cache clean --all
23+
24+
WORKDIR ${APP_ROOT}/src
425
RUN pip install --no-cache-dir pip-tools && \
526
make install-python-ci-dependencies && \
627
pip uninstall -y pip-tools
728

8-
RUN npm install -S yarn
9-
ENV PATH ${PATH}:${APP_ROOT}/src/node_modules/yarn/bin
10-
RUN make build-ui && yarn cache clean --all
11-
1229
# modify permissions to support running with a random uid
1330
RUN chmod g+w $(python -c "import feast.ui as ui; print(ui.__path__)" | tr -d "[']")/build/projects-list.json

0 commit comments

Comments
 (0)