Skip to content

Commit b54c21f

Browse files
Fix Dockerfile missing libudev-dev and add build directive to compose.yaml
- Add apt-get install libudev-dev pkg-config to Dockerfile (fixes elf2uf2-rs build failure) - Add build: context/dockerfile to compose.yaml so image builds locally instead of only pulling from GHCR Agent-Logs-Url: https://github.com/Baker-link-Lab/bakerlink_tutorial_template/sessions/46ef79d4-a5b6-4e5c-ac3c-3cac6b5eb681 Co-authored-by: Baker-Tanaka <42606588+Baker-Tanaka@users.noreply.github.com>
1 parent 2134c36 commit b54c21f

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM rust:1.86.0-bullseye
22

3+
RUN apt-get update && apt-get install -y libudev-dev pkg-config && rm -rf /var/lib/apt/lists/*
34
RUN rustup target install thumbv6m-none-eabi
45
RUN cargo install flip-link --version 0.1.10
56
RUN rustup component add rustfmt

.docker/compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
services:
22
{{project-name}}:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
36
image: "ghcr.io/baker-link-lab/bakerlink-env:latest"
47
container_name: "{{project-name}}-container"
58
volumes:

0 commit comments

Comments
 (0)