mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
24 lines
912 B
Docker
24 lines
912 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/plinth: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-mark hold fuse fuse3 # not installable in CI environment
|
|
RUN apt-get install -y $(./run --list-dependencies) # Module dependencies
|