blob: 3a3d9619b00e64793f314852b18c91a27977109c [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
2# Atmosphere-Rebuild-Time: 2024-05-30T20:29:01Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
6ARG FROM=registry.atmosphere.dev/library/ubuntu-cloud-archive:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -04007FROM ${FROM}
8ONBUILD ARG PROJECT
9ONBUILD ARG SHELL=/usr/sbin/nologin
10ONBUILD RUN \
11 groupadd -g 42424 ${PROJECT} && \
12 useradd -u 42424 -g 42424 -M -d /var/lib/${PROJECT} -s ${SHELL} -c "${PROJECT} User" ${PROJECT} && \
13 mkdir -p /etc/${PROJECT} /var/log/${PROJECT} /var/lib/${PROJECT} /var/cache/${PROJECT} && \
14 chown -Rv ${PROJECT}:${PROJECT} /etc/${PROJECT} /var/log/${PROJECT} /var/lib/${PROJECT} /var/cache/${PROJECT}