mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 17:39:39 +02:00
30 lines
615 B
Docker
30 lines
615 B
Docker
|
|
FROM alpine:3.21 AS build
|
|
|
|
RUN apk add --update --no-cache --no-progress make g++ gcc linux-headers
|
|
|
|
RUN apk add --update --no-cache --no-progress python3 py3-pip py3-wheel \
|
|
python3-dev
|
|
|
|
RUN mkdir /root/wheels
|
|
|
|
COPY workbench-ui /root/workbench-ui/
|
|
|
|
RUN (cd /root/workbench-ui && pip wheel -w /root/wheels --no-deps .)
|
|
|
|
FROM alpine:3.21
|
|
|
|
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
|
|
|
COPY --from=build /root/wheels /root/wheels
|
|
|
|
RUN apk add --update --no-cache --no-progress python3 py3-pip \
|
|
py3-aiohttp
|
|
|
|
RUN pip install /root/wheels/* && \
|
|
pip cache purge && \
|
|
rm -rf /root/wheels
|
|
|
|
CMD service
|
|
EXPOSE 8888
|
|
|