Browse Source

install toit v1.18.2 on debian bullseye (`toit serial provision ...` succeeded)

Fabian Peter Hammerle 2 years ago
commit
cae257eb92
1 changed files with 17 additions and 0 deletions
  1. 17 0
      Dockerfile

+ 17 - 0
Dockerfile

@@ -0,0 +1,17 @@
+# TODO test alpine base image
+FROM docker.io/debian:bullseye-slim
+
+# TODO test if ca-certificates is required at runtime (cert pinned?)
+RUN apt-get update \
+    && apt-get install --no-install-recommends --yes \
+        curl
+# TODO merge
+RUN apt-get install --no-install-recommends --yes \
+        ca-certificates
+# TODO merge
+RUN curl https://archive.toit.io/cli/v1.18.2/linux \
+        | tar -xvzf - -C /usr/local/bin \
+    && apt-get install --autoremove --yes curl \
+    && rm -r /var/lib/apt/lists/*
+
+# TODO change user