-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (25 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# The devcontainer should use the developer target and run as root with podman
# or docker with user namespaces.
ARG PYTHON_VERSION=3.11
FROM python:${PYTHON_VERSION} as developer
# Add any system dependencies for the developer/build environment here
RUN apt-get update && apt-get install -y --no-install-recommends \
graphviz \
iproute2 \
&& rm -rf /var/lib/apt/lists/*
# Install GenTL producer
ARG MATRIX_VERSION=2.29.0
RUN curl -O http://static.matrix-vision.com/mvIMPACT_Acquire/${MATRIX_VERSION}/mvGenTL_Acquire-x86_64_ABI2-${MATRIX_VERSION}.tgz \
&& wget http://static.matrix-vision.com/mvIMPACT_Acquire/${MATRIX_VERSION}/install_mvGenTL_Acquire.sh \
&& bash install_mvGenTL_Acquire.sh
# Set up a virtual environment and put it in PATH
RUN python -m venv /venv
ENV PATH=/venv/bin:$PATH
# The build stage installs the context into the venv
FROM developer as runtime
COPY . /context
WORKDIR /context
RUN pip install .
# change this entrypoint if it is not the same as the repo
ENTRYPOINT ["genicam-fastcs"]
CMD ["--version"]