-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
29 lines (20 loc) · 778 Bytes
/
Copy pathContainerfile
File metadata and controls
29 lines (20 loc) · 778 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
26
27
28
29
FROM fedora:43
# Install Python and pip
RUN dnf install -y procps-ng python3 python3-pip python3-wheel && \
dnf clean all
# Install CarConnectivity with all connectors
RUN pip3 install --no-cache-dir --prefix=/usr/local 'carconnectivity[all]'
# Ensure pip-installed binaries are in PATH
ENV PATH="/usr/local/bin:${PATH}"
WORKDIR /app
# Copy plugin source
COPY pyproject.toml README.md LICENSE ./
COPY src/ ./src/
# setuptools_scm requires a git checkout; provide a fallback version for
# container builds where no git history is available.
ENV SETUPTOOLS_SCM_PRETEND_VERSION=0.1.0.dev0
# Install the CamperMode plugin
RUN pip3 install --no-cache-dir --prefix=/usr/local .
# CamperMode web UI port
EXPOSE 4001
CMD ["carconnectivity", "/config/carconnectivity.json"]