debian-forge-composer/.devcontainer/Dockerfile
Martin Sehnoutka b7df6ac627 devcontainer: introduce VSCode dev container
Introduce Dockerfile and devcontainer.json specifying how to build and
run a containerized development environment in VSCode.

The configuration is inspired by the osbuild repo where a similar
configuration directory already exists.
2021-07-20 23:04:41 +02:00

17 lines
589 B
Docker

FROM fedora:34
# Install few packages for convenient usage.
# Inspired by the devcontainer in osbuild.
RUN dnf install -y \
fish \
fd-find \
ripgrep \
jq
# We build composer using RPM, install the tooling
RUN dnf install fedora-packager rpmdevtools go-srpm-macros -y
# The list of requirements is specified in the spec file.
# To install them, dnf needs the "builddep" command.
RUN dnf install 'dnf-command(builddep)' -y
# Copy the specfile and install the dependencies.
COPY osbuild-composer.spec /tmp/osbuild-composer.spec
RUN dnf builddep /tmp/osbuild-composer.spec -y