mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
8328449c1a
This is especially noticeable on local builds (less so on the github workers).
37 lines
953 B
Docker
37 lines
953 B
Docker
################################################
|
|
# autotools-linux
|
|
FROM toxchat/c-toxcore:sources AS sources
|
|
FROM ubuntu:22.04
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
|
|
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
|
|
|
|
# Copy autotools-specific build scripts not present in the sources image.
|
|
# These change less frequently than the sources, thus are copied first.
|
|
COPY --chown=builder:builder . /home/builder/c-toxcore/
|
|
|
|
# Copy the sources and run the build.
|
|
COPY --chown=builder:builder --from=sources /src/ /home/builder/c-toxcore/
|
|
|
|
WORKDIR /home/builder/c-toxcore
|
|
RUN CC=gcc .github/scripts/autotools-linux
|