File Dockerfile of Package docker-cancloud-container

# Specify the license of the container build description (see also the LICENSE file)
# SPDX-License-Identifier: MIT
# Define the names/tags of the container
#!BuildTag: cancloud:latest cancloud:%PKG_VERSION% cancloud:%PKG_VERSION%.%RELEASE%

FROM opensuse/leap:16.0

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.cancloud
LABEL org.opencontainers.image.title="openSUSE based docker image of CANcloud - open source telematics platform "
LABEL org.opencontainers.image.description="CANcloud %PKG_VERSION% container"
LABEL org.opencontainers.image.version="%PKG_VERSION%.%RELEASE%"
LABEL org.opensuse.reference="registry.opensuse.org/home/illuusio/images/images_16.0/cancloud:%PKG_VERSION%.%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opencontainers.image.created="%BUILDTIME%"
# endlabelprefix

# Which to install files
USER root

# Fill the image with content and clean the cache(s)
RUN zypper --non-interactive ref && zypper --non-interactive install cancloud && zypper clean -a

COPY entrypoint-cancloud.sh /usr/bin/

RUN chmod +x /usr/bin/entrypoint-cancloud.sh

USER darkhttpd

# Start the app using the `serve` command
CMD ["/usr/bin/entrypoint-cancloud.sh"]
openSUSE Build Service is sponsored by