12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- ARG distro=""
- FROM ${distro} as builder
- RUN apt-get update -qq -o Acquire::Languages=none
- RUN env DEBIAN_FRONTEND=noninteractive apt-get install \
- -yqq --no-install-recommends \
- build-essential \
- ca-certificates \
- devscripts \
- equivs \
- wget
- RUN wget -q -O /dh-virtuenv-1.1.tar.gz https://github.com/spotify/dh-virtualenv/archive/1.1.tar.gz
- RUN tar xvf /dh-virtuenv-1.1.tar.gz
- RUN cd dh-virtualenv-1.1/ \
- && env DEBIAN_FRONTEND=noninteractive mk-build-deps -ri -t "apt-get -yqq --no-install-recommends"
- RUN cd dh-virtualenv-1.1 && dpkg-buildpackage -us -uc -b
- FROM ${distro}
- ARG distro=""
- ENV distro ${distro}
- RUN apt-get update -qq -o Acquire::Languages=none \
- && env DEBIAN_FRONTEND=noninteractive apt-get install \
- -yqq --no-install-recommends -o Dpkg::Options::=--force-unsafe-io \
- build-essential \
- debhelper \
- devscripts \
- dh-systemd \
- libsystemd-dev \
- lsb-release \
- pkg-config \
- python3-dev \
- python3-pip \
- python3-setuptools \
- python3-venv \
- sqlite3 \
- libpq-dev
- COPY --from=builder /dh-virtualenv_1.1-1_all.deb /
- RUN apt-get update -qq -o Acquire::Languages=none \
- && apt-get install -yq /dh-virtualenv_1.1-1_all.deb
- WORKDIR /synapse/source
- ENTRYPOINT ["bash","/synapse/source/docker/build_debian.sh"]
|