FreedomBox/.ci/Dockerfile.gitlabci
Sunil Mohan Adapa c69c5f8317
ci: Update link to container in Docker registry
Move Gitlab docker related files to .ci folder

Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2020-05-01 17:15:48 +05:30

24 lines
916 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-mark hold fuse fuse3 # not installable in CI environment
RUN apt-get install -y $(./run --list-dependencies) # Module dependencies