2021-03-17 09:35:56 +00:00
|
|
|
ARG VERSION
|
|
|
|
|
2021-04-16 12:21:18 +00:00
|
|
|
FROM ghcr.io/k8s-at-home/ubuntu:v${VERSION}
|
2021-03-17 09:35:56 +00:00
|
|
|
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
|
2021-03-17 16:20:26 +00:00
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
|
2021-04-16 12:21:18 +00:00
|
|
|
USER root
|
2021-03-17 09:35:56 +00:00
|
|
|
|
|
|
|
RUN \
|
2021-04-16 12:21:18 +00:00
|
|
|
usermod -l apps kah \
|
2021-03-17 09:35:56 +00:00
|
|
|
&& \
|
2021-04-16 12:21:18 +00:00
|
|
|
groupmod -n apps kah \
|
2021-03-17 09:35:56 +00:00
|
|
|
&& chown -R apps:apps /config
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
USER apps
|
|
|
|
|
|
|
|
VOLUME [ "/config" ]
|
|
|
|
|
2021-03-17 16:20:26 +00:00
|
|
|
ENTRYPOINT [ "/usr/bin/tini", "--" ]
|
2021-03-17 09:35:56 +00:00
|
|
|
|
|
|
|
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
|
|
|
|
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/apps"
|