-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 843 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 843 Bytes
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
FROM ghcr.io/ad-sdl/madsci
LABEL org.opencontainers.image.source=https://github.com/AD-SDL/hudson_platecrane_module
LABEL org.opencontainers.image.description="Drivers and REST API's for the Hudson Platecrane and Sciclops robots"
LABEL org.opencontainers.image.licenses=MIT
#########################################
# Module specific logic goes below here #
#########################################
RUN apt update && apt install -y libusb-1.0-0-dev && rm -rf /var/lib/apt/lists/*
RUN mkdir -p sciclops_module
COPY ./src sciclops_module/src
COPY ./README.md sciclops_module/README.md
COPY ./pyproject.toml sciclops_module/pyproject.toml
RUN --mount=type=cache,target=/root/.cache \
pip install -e ./sciclops_module
RUN usermod -aG dialout madsci
CMD ["python", "-,", "sciclops_rest_node"]
#########################################