We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad7a3fe commit 5572718Copy full SHA for 5572718
Dockerfile
@@ -3,8 +3,6 @@ FROM rust:bullseye
3
WORKDIR /boot-bot
4
COPY . .
5
6
-RUN apt update
7
-RUN apt install gcc-arm-linux-gnueabihf -y
+RUN cargo install --path .
8
9
-RUN rustup target add armv7-unknown-linux-gnueabihf
10
-RUN cargo install --target armv7-unknown-linux-gnueabihf --path .
+ENTRYPOINT ["boot_bot"]
docker-build-and-push-local.sh
@@ -0,0 +1,11 @@
1
+#!/bin/bash
2
+
+# BEFORE starting this script, call 'docker login' to authenticate.
+# Replace 'namespace' and 'project' as needed
+namespace="codingdepot"
+project="boot-bot"
+version=$(cargo metadata --no-deps | jq -r .packages[0].version)
+docker build --network=host -t ${namespace}/${project}:${version} .
11
+docker push ${namespace}/${project}:${version}
0 commit comments