Skip to content

Commit cded0e4

Browse files
committed
[PLT-0] lbox-alignerr: add missing Dockerfile
1 parent a0c28ad commit cded0e4

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

libs/lbox-alignerr/Dockerfile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# https://github.com/ucyo/python-package-template/blob/master/Dockerfile
2+
FROM python:3.9-slim as rye
3+
4+
ENV LANG="C.UTF-8" \
5+
LC_ALL="C.UTF-8" \
6+
PATH="/home/python/.local/bin:/home/python/.rye/shims:$PATH" \
7+
PIP_NO_CACHE_DIR="false" \
8+
RYE_VERSION="0.43.0" \
9+
RYE_INSTALL_OPTION="--yes" \
10+
LABELBOX_TEST_ENVIRON="prod"
11+
12+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
13+
ca-certificates \
14+
curl \
15+
inotify-tools \
16+
make \
17+
# cv2
18+
libsm6 \
19+
libxext6 \
20+
ffmpeg \
21+
libfontconfig1 \
22+
libxrender1 \
23+
libgl1-mesa-glx \
24+
libgeos-dev \
25+
gcc \
26+
&& rm -rf /var/lib/apt/lists/*
27+
28+
RUN groupadd --gid 1000 python && \
29+
useradd --uid 1000 --gid python --shell /bin/bash --create-home python
30+
31+
USER 1000
32+
WORKDIR /home/python/
33+
34+
RUN curl -sSf https://rye.astral.sh/get | bash -
35+
36+
COPY --chown=python:python . /home/python/labelbox-python/
37+
WORKDIR /home/python/labelbox-python
38+
39+
RUN rye config --set-bool behavior.global-python=true && \
40+
rye config --set-bool behavior.use-uv=true && \
41+
rye pin 3.9 && \
42+
rye sync
43+
44+
CMD rye run unit && rye integration

0 commit comments

Comments
 (0)