2023-07-25 11:53:09 +02:00
|
|
|
################################################
|
|
|
|
# autotools-linux
|
2023-12-27 12:37:22 +01:00
|
|
|
FROM ubuntu:22.04
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
libconfig-dev \
|
|
|
|
libopus-dev \
|
|
|
|
libsodium-dev \
|
|
|
|
libtool \
|
|
|
|
libvpx-dev \
|
|
|
|
make \
|
|
|
|
pkg-config \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN groupadd -r -g 1000 builder \
|
|
|
|
&& useradd -m --no-log-init -r -g builder -u 1000 builder
|
|
|
|
USER builder
|
|
|
|
|
|
|
|
WORKDIR /home/builder
|
2023-07-25 11:53:09 +02:00
|
|
|
|
|
|
|
# Copy the sources and run the build.
|
|
|
|
COPY --chown=builder:builder . /home/builder/c-toxcore/
|
|
|
|
WORKDIR /home/builder/c-toxcore
|
|
|
|
RUN CC=gcc .github/scripts/autotools-linux
|