Initial import
This commit is contained in:
23
base/Dockerfile
Normal file
23
base/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM debian:stretch-slim
|
||||
|
||||
ARG JITSI_RELEASE=unstable
|
||||
|
||||
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.2.2/s6-overlay-amd64.tar.gz /tmp/s6-overlay.tar.gz
|
||||
ADD https://download.jitsi.org/jitsi-key.gpg.key /tmp/jitsi.key
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
RUN \
|
||||
tar xfz /tmp/s6-overlay.tar.gz -C / && \
|
||||
rm -f /tmp/*.tar.gz && \
|
||||
apt-dpkg-wrap apt-get update && \
|
||||
apt-dpkg-wrap apt-get install -y apt-transport-https ca-certificates gnupg && \
|
||||
apt-key add /tmp/jitsi.key && \
|
||||
rm -f /tmp/jitsi.key && \
|
||||
echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list && \
|
||||
apt-dpkg-wrap apt-get update && \
|
||||
apt-dpkg-wrap apt-get dist-upgrade -y && \
|
||||
apt-dpkg-wrap apt-get autoremove -y --purge gnupg && \
|
||||
apt-cleanup
|
||||
|
||||
ENTRYPOINT [ "/init" ]
|
||||
14
base/README.md
Normal file
14
base/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Debian S6
|
||||
|
||||
This is a base Debian image with the [S6 Overlay](https://github.com/just-containers/s6-overlay).
|
||||
|
||||
## Usage
|
||||
|
||||
See the [S6 Overlay Documentation](https://github.com/just-containers/s6-overlay) for details on how to manage services.
|
||||
|
||||
### Parameters
|
||||
|
||||
These can be set using environment variables:
|
||||
|
||||
* ``TZ``: timezone, defaults to "Europe/Amsterdam".
|
||||
|
||||
4
base/rootfs/etc/apt/apt.conf.d/99local
Normal file
4
base/rootfs/etc/apt/apt.conf.d/99local
Normal file
@@ -0,0 +1,4 @@
|
||||
Dir::Cache "";
|
||||
Dir::Cache::archives "";
|
||||
APT::Install-Recommends "false";
|
||||
APT::Install-Suggests "false";
|
||||
0
base/rootfs/etc/cont-finish.d/.gitkeep
Normal file
0
base/rootfs/etc/cont-finish.d/.gitkeep
Normal file
0
base/rootfs/etc/cont-init.d/.gitkeep
Normal file
0
base/rootfs/etc/cont-init.d/.gitkeep
Normal file
6
base/rootfs/etc/cont-init.d/01-set-timezone
Normal file
6
base/rootfs/etc/cont-init.d/01-set-timezone
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
|
||||
if [ $TZ ]; then
|
||||
[ -f /usr/share/zoneinfo/$TZ ] && cp /usr/share/zoneinfo/$TZ /etc/localtime || echo "WARNING: $TZ is not a valid time zone."
|
||||
[ -f /usr/share/zoneinfo/$TZ ] && echo "$TZ" > /etc/timezone
|
||||
fi
|
||||
0
base/rootfs/etc/fix-attrs.d/.gitkeep
Normal file
0
base/rootfs/etc/fix-attrs.d/.gitkeep
Normal file
0
base/rootfs/etc/services.d/.gitkeep
Normal file
0
base/rootfs/etc/services.d/.gitkeep
Normal file
4
base/rootfs/usr/bin/apt-cleanup
Executable file
4
base/rootfs/usr/bin/apt-cleanup
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -f /*.deb
|
||||
rm -rf /var/lib/apt/lists/
|
||||
8
base/rootfs/usr/bin/apt-dpkg-wrap
Executable file
8
base/rootfs/usr/bin/apt-dpkg-wrap
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
export LC_ALL=C
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
bin=$1
|
||||
shift
|
||||
exec "$bin" "$@"
|
||||
Reference in New Issue
Block a user