toxcore/other/docker/misra/misra.Dockerfile
iphydf 8328449c1a
chore: Speed up docker builds a bit by reducing layer count.
This is especially noticeable on local builds (less so on the github
workers).
2024-01-26 14:13:34 +00:00

20 lines
447 B
Docker

FROM toxchat/c-toxcore:sources AS sources
FROM ubuntu:20.04
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
ca-certificates \
cppcheck \
libopus-dev \
libsodium-dev \
libvpx-dev \
make \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY --from=sources /src/ /src/workspace/c-toxcore/
COPY other/docker/misra/Makefile /src/workspace/
WORKDIR /src/workspace
RUN ["make"]