Add containers to repo
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
FROM alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
|
||||
|
||||
ARG CONTAINER_NAME
|
||||
ARG CONTAINER_VER
|
||||
|
||||
ENV XDG_CONFIG_HOME=/config
|
||||
ENV UMASK=0002
|
||||
|
||||
USER root
|
||||
|
||||
SHELL ["/bin/sh", "-o", "pipefail", "-c"]
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# hadolint ignore=DL3018
|
||||
RUN \
|
||||
apk update && apk add --no-cache ca-certificates bash util-linux coreutils grep procps \
|
||||
&& addgroup apps -g 568 \
|
||||
&& adduser apps -u 568 -g 568 -D -S -H \
|
||||
&& mkdir -p /config \
|
||||
&& chown -R apps:apps /config \
|
||||
&& chmod -R 775 /config \
|
||||
&& chown -R apps:apps /app \
|
||||
&& chmod -R 775 /app \
|
||||
&& update-ca-certificates
|
||||
|
||||
VOLUME [ "/config" ]
|
||||
|
||||
USER apps
|
||||
|
||||
COPY ./base/ubuntu/entrypoint.sh /entrypoint.sh
|
||||
COPY ./base/ubuntu/shim /etc/profile.d
|
||||
|
||||
ENTRYPOINT ["/bin/ash", "--"]
|
||||
|
||||
LABEL org.opencontainers.image.licenses="BSD-3-Clause"
|
||||
LABEL org.opencontainers.image.title="${CONTAINER_NAME}"
|
||||
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
|
||||
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/containers"
|
||||
LABEL org.opencontainers.image.version="${CONTAINER_VER}"
|
||||
LABEL org.opencontainers.image.description="Container for ${CONTAINER_NAME} by TrueCharts"
|
||||
LABEL org.opencontainers.image.authors="TrueCharts"
|
||||
@@ -0,0 +1,2 @@
|
||||
linux/amd64
|
||||
linux/arm
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh bash
|
||||
|
||||
#shellcheck disable=SC1091
|
||||
source "/shim/umask.sh"
|
||||
source "/shim/vpn.sh"
|
||||
|
||||
exec "$@"
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "
|
||||
Welcome to a TrueCharts container,
|
||||
You are entering the vicinity of an area adjacent to a location.
|
||||
The kind of place where there might be a monster, or some kind of weird mirror.
|
||||
These are just examples; it could also be something much better.
|
||||
* Repository: https://github.com/truecharts/containers
|
||||
* Docs: https://truecharts.org
|
||||
* Bugs or feature requests should be opened in an GH issue
|
||||
* Questions should be discussed in Discord
|
||||
"
|
||||
Reference in New Issue
Block a user