Build your own Docker image


Project-specific docker images can be easily built on the imperia base image.

A simple example docker file could look like this:

FROM docker.imperia.cloud:16080/
MAINTAINER Your Name (http://www.example.com/)

USER root:root

RUN apt-get install -y ghostscript

USER imperia:imperia

Explanation

For security reasons, the Imperia processes run in the container with limited rights under the user name "imperia". In order to start commands with root rights in derived containers, this must be temporarily reset with corresponding USER directives when building the container.

This sample docker file would extend the imperia docker image so that the ghostscript command is available in the container. It would be built with the command:

$ docker build -t imperia-PROJECTNAME:latest .