lemur/nextcloud/containers/nginx/create_nginx_image.sh

18 lines
420 B
Bash
Executable file

#!/bin/bash
set -xo errexit
source ../create_images.shlib
PACKAGE_LIST=nginx
bootstrap_env $BASE_IMAGE
dnf install -y --installroot $MOUNTPOINT \
--releasever $RELEASEVER $PACKAGE_LIST --nodocs \
--setopt install_weak_deps=False
clean
cp -rp files/* $MOUNTPOINT/.
add_port 80
add_cmd "/usr/sbin/nginx -g 'daemon off;'"
buildah commit --squash $CONTAINER "localhost/${IMAGE_NAME}:stream${RELEASEVER}"