FreedomBox/Dockerfile.gitlabci
Joseph Nuthalapati a8e2464b99
ci: Optimize refreshing Docker image for GitLabCI
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-13 18:20:33 -04:00

24 lines
915 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:unstable 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 unstable main" > /etc/apt/sources.list
RUN echo "deb-src http://deb.debian.org/debian unstable 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