mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-01-23 13:51:07 -05:00
Merge pull request #6 from tillitis/docker
Reduce final Docker image size
This commit is contained in:
commit
7b1ecf274c
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04 as builder
|
||||||
|
|
||||||
RUN apt-get -qq update -y \
|
RUN apt-get -qq update -y \
|
||||||
&& DEBIAN_FRONTEND=noninteractive \
|
&& DEBIAN_FRONTEND=noninteractive \
|
||||||
@ -73,3 +73,41 @@ RUN cmake -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=/usr/local . \
|
|||||||
RUN git show -s >/repo-commit-nextpnr
|
RUN git show -s >/repo-commit-nextpnr
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN rm -rf /src
|
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…
Reference in New Issue
Block a user