~ruther/avr-guess-the-number

ref: 0741078d7a4c0e6e049dcd3b0d3e26a55084dab5 avr-guess-the-number/.github/Dockerfile.ci -rw-r--r-- 545 bytes
0741078d — František Boháček feat: improve number generation 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:18.04

RUN useradd -m avr-rust

# Install dependencies
RUN apt-get update -y && apt-get install -y wget gcc binutils gcc-avr avr-libc

RUN mkdir -p /code && chown avr-rust:avr-rust /code

USER avr-rust

# Install Rustup along with nightly
RUN wget -q https://sh.rustup.rs -O /tmp/rustup.sh && sh /tmp/rustup.sh -y --profile minimal --default-toolchain nightly -c rust-src --quiet
ENV PATH=/home/avr-rust/.cargo/bin:$PATH

COPY --chown=avr-rust:avr-rust . /code

WORKDIR /code

ENV AVR_CPU_FREQUENCY_HZ=16000000

ENTRYPOINT ["cargo"]