mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
5ab301ecab
Travis gave up on FOSS, so no more free advertisement for Travis.
33 lines
985 B
Docker
33 lines
985 B
Docker
################################################
|
|
# autotools-linux
|
|
FROM ubuntu:20.04
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
autoconf \
|
|
automake \
|
|
ca-certificates \
|
|
curl \
|
|
libconfig-dev \
|
|
libopus-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
|
|
|
|
# Copy minimal files to run "autotools-linux install", so we can avoid
|
|
# rebuilding nacl and other things when only source files change.
|
|
RUN mkdir -p /home/builder/build/c-toxcore /home/builder/cache
|
|
WORKDIR /home/builder/build/c-toxcore
|
|
COPY --chown=builder:builder .github/scripts/ /home/builder/build/c-toxcore/.github/scripts/
|
|
RUN .github/scripts/autotools-linux install
|
|
|
|
# Now copy the rest of the sources and run the build.
|
|
COPY --chown=builder:builder . /home/builder/build/c-toxcore/
|
|
RUN CC=gcc .github/scripts/autotools-linux script
|