Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
FROM registry.access.redhat.com/ubi8/python-311:1

USER 0
RUN npm install -g yarn yalc && rm -rf .npm
USER default

COPY --chown=default . ${APP_ROOT}/src

WORKDIR ${APP_ROOT}/src/ui
RUN npm install && \
npm run build:lib-dev && \
rm -rf node_modules && \
npm cache clean --force

WORKDIR ${APP_ROOT}/src/sdk/python/feast/ui
RUN yalc add @feast-dev/feast-ui && \
git diff package.json && \
yarn install && \
npm run build --omit=dev && \
rm -rf node_modules && \
npm cache clean --force && \
yarn cache clean --all

WORKDIR ${APP_ROOT}/src
RUN pip install --no-cache-dir pip-tools && \
make install-python-ci-dependencies && \
pip uninstall -y pip-tools

RUN npm install -S yarn
ENV PATH ${PATH}:${APP_ROOT}/src/node_modules/yarn/bin
RUN make build-ui && yarn cache clean --all

# modify permissions to support running with a random uid
RUN chmod g+w $(python -c "import feast.ui as ui; print(ui.__path__)" | tr -d "[']")/build/projects-list.json
Loading