mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-25 18:48:05 +06:00
7ce94eb468
From the official docs: ``` Note: The official Debian and Ubuntu images automatically run apt-get clean, so explicit invocation is not required. ``` Also added ` && rm -rf /var/lib/apt/lists/*` as part of the install line which probably does what was intended (no need to make a new layer). Added apt-get update to the RUN payload, as it should be part of the same layer. Both are documented here: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
27 lines
573 B
Docker
27 lines
573 B
Docker
FROM debian:jessie
|
|
MAINTAINER Erik Dasque <erik@frenchguys.com>
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y build-essential \
|
|
gcc \
|
|
unzip \
|
|
wget \
|
|
zip \
|
|
gcc-avr \
|
|
binutils-avr \
|
|
avr-libc \
|
|
dfu-programmer \
|
|
dfu-util \
|
|
gcc-arm-none-eabi \
|
|
binutils-arm-none-eabi \
|
|
libnewlib-arm-none-eabi \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV keyboard=ergodox
|
|
ENV subproject=ez
|
|
ENV keymap=default
|
|
|
|
VOLUME /qmk
|
|
WORKDIR /qmk
|
|
CMD make clean ; make keyboard=${keyboard} subproject=${subproject} keymap=${keymap}
|