mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-03-22 14:56:29 -04:00
Reduce final Docker image size
This brings it back to 2.2GB: docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE key1 latest 7456feccd2fd Less than a second ago 2.22GB
This commit is contained in:
parent
d354f203dc
commit
1d7a8cd506
@ -1,4 +1,4 @@
|
||||
FROM ubuntu:22.04
|
||||
FROM ubuntu:22.04 as builder
|
||||
|
||||
RUN apt-get -qq update -y \
|
||||
&& DEBIAN_FRONTEND=noninteractive \
|
||||
@ -73,3 +73,41 @@ RUN cmake -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=/usr/local . \
|
||||
RUN git show -s >/repo-commit-nextpnr
|
||||
WORKDIR /
|
||||
RUN rm -rf /src
|
||||
|
||||
|
||||
FROM ubuntu:22.04
|
||||
COPY --from=builder /usr/local/ /usr/local
|
||||
|
||||
RUN apt-get -qq update -y \
|
||||
&& DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get install -y --no-install-recommends \
|
||||
bison \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
clang \
|
||||
cmake \
|
||||
flex \
|
||||
gawk \
|
||||
git \
|
||||
golang \
|
||||
graphviz \
|
||||
less \
|
||||
libboost-dev \
|
||||
libboost-filesystem-dev \
|
||||
libboost-iostreams-dev \
|
||||
libboost-program-options-dev \
|
||||
libboost-thread-dev \
|
||||
libeigen3-dev \
|
||||
libftdi1 \
|
||||
libhidapi-libusb0 \
|
||||
lld \
|
||||
llvm \
|
||||
mercurial \
|
||||
nano \
|
||||
pkg-config \
|
||||
python3 \
|
||||
python3-dev \
|
||||
tcl-dev \
|
||||
verilator \
|
||||
vim \
|
||||
xdot \
|
||||
|
5
contrib/Makefile
Normal file
5
contrib/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
build:
|
||||
docker build -t key1 .
|
||||
|
||||
run:
|
||||
docker run --mount type=bind,source="`pwd`/../",target=/build -w /build -it key1 /usr/bin/bash
|
Loading…
x
Reference in New Issue
Block a user