mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-18 08:33:41 +00:00
23 lines
851 B
Docker
23 lines
851 B
Docker
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
# This is an IaC pattern called "reheating a server template".
|
|
# This is very fast but can accumulate cruft over time.
|
|
# Use debian:testing if you want to build a fresh image.
|
|
FROM registry.salsa.debian.org/freedombox-team/freedombox:gitlabci
|
|
|
|
USER root
|
|
COPY . /plinth
|
|
WORKDIR /plinth
|
|
|
|
RUN echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list
|
|
RUN echo "deb-src http://deb.debian.org/debian testing main" >> /etc/apt/sources.list
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update
|
|
RUN apt-get build-dep -y . # Dependencies of the freedombox Debian package
|
|
RUN apt-get install -y build-essential # Build dependencies
|
|
RUN apt-get install -y sshpass parted # Test dependencies
|
|
RUN apt-get install -y sudo
|
|
RUN apt-get install -y $(./run --list-dependencies) # Module dependencies
|