-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
22 lines (20 loc) · 631 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ARG FO_VERSION=0.25.0
ARG PY_VERSION=python3.11
FROM voxel51/fiftyone:${FO_VERSION}-${PY_VERSION} AS builder
# Will install version currently checked out
FROM builder AS niftyone
COPY . /opt/niftyone/
RUN apt-get update -qq \
&& apt-get install -y git \
&& cd /opt/niftyone \
&& pip wheel --no-deps --prefer-binary . --wheel wheels/
FROM builder AS runtime
COPY --from=niftyone /opt/niftyone/wheels/*.whl /opt/wheels/
WORKDIR /home
ARG ROOT_DIR=/home/.fiftyone
ENV OS=LINUX
RUN WHEEL=`ls /opt/wheels | grep whl` \
&& pip install /opt/wheels/${WHEEL} \
&& rm -r /opt/wheels
EXPOSE 5151
ENTRYPOINT ["niftyone"]