Skip to content

Commit 44cb502

Browse files
committed
Container: Add initial container for meshtastic-cli
Just a quick set of files to enable the build of (tagged) containers. Both alpine and debian containers are available (~200MiB/~1.2GiB) allowing us to use meshtastic cli with a quick docker run, instead of having to build/install stuff locally. Signed-off-by: Olliver Schinagl <[email protected]>
1 parent dcd077d commit 44cb502

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Containerfile.alpine

Containerfile.alpine

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ARG TARGET_VERSION="3.11-alpine"
2+
ARG TARGET_ARCH="library"
3+
4+
FROM docker.io/${TARGET_ARCH}/python:${TARGET_VERSION}
5+
6+
WORKDIR /src
7+
8+
COPY . /src/
9+
10+
RUN _poetry_venv_dir="$(mktemp -d -p "${TMPDIR:-/tmp}" 'poetry_venv.XXXXXX')" && \
11+
python -m 'venv' "${_poetry_venv_dir}" && \
12+
"${_poetry_venv_dir}/bin/pip" install 'poetry' && \
13+
"${_poetry_venv_dir}/bin/poetry" config --local virtualenvs.create false && \
14+
"${_poetry_venv_dir}/bin/poetry" install && \
15+
rm -f -r "${_poetry_venv_dir}" && \
16+
rm -f -r "/src"
17+
18+
WORKDIR /
19+
20+
COPY "./bin/container-entrypoint.sh" "/init"
21+
22+
ENTRYPOINT [ "/init" ]

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Containerfile

0 commit comments

Comments
 (0)