Compare commits
No commits in common. "bb16585e34c17636eef01fe88120ca872bd65f23" and "283f61e866dc6e0417b7a054d25799f123a338c0" have entirely different histories.
bb16585e34
...
283f61e866
17
Dockerfile
17
Dockerfile
@ -64,12 +64,6 @@ RUN d="@$(date '+%s')" ; \
|
|||||||
find /usr/local/lib/ -name '*.pyc' -exec touch -m -d "$d" {} + ; \
|
find /usr/local/lib/ -name '*.pyc' -exec touch -m -d "$d" {} + ; \
|
||||||
find /usr/local/lib/ -name __pycache__ -exec touch -m -d "$d" {} +
|
find /usr/local/lib/ -name __pycache__ -exec touch -m -d "$d" {} +
|
||||||
|
|
||||||
WORKDIR /pycache
|
|
||||||
RUN find /usr/local/ -type f -name '*.py[co]' -printf '%P\0' \
|
|
||||||
| sort -zV \
|
|
||||||
| tar -C /usr/local --null -T - -cf - \
|
|
||||||
| tar -xf -
|
|
||||||
|
|
||||||
## ---
|
## ---
|
||||||
|
|
||||||
FROM deps
|
FROM deps
|
||||||
@ -82,10 +76,12 @@ COPY /Dockerfile /usr/local/share/
|
|||||||
COPY --from=setup /etc/apt/keyrings/angie.gpg.asc /etc/apt/keyrings/
|
COPY --from=setup /etc/apt/keyrings/angie.gpg.asc /etc/apt/keyrings/
|
||||||
COPY --from=setup /etc/apt/sources.list.d/angie.sources /etc/apt/sources.list.d/
|
COPY --from=setup /etc/apt/sources.list.d/angie.sources /etc/apt/sources.list.d/
|
||||||
|
|
||||||
COPY /j2cfg/ /usr/local/lib/j2cfg/
|
|
||||||
|
|
||||||
## RFC: Python cache
|
## RFC: Python cache
|
||||||
COPY --from=pycache /pycache/ /usr/local/
|
## TODO: reduce load by selecting only __pycache__ directories in either way
|
||||||
|
COPY --from=pycache /usr/local/lib/ /usr/local/lib/
|
||||||
|
|
||||||
|
## already copied by statement above
|
||||||
|
# COPY /j2cfg/ /usr/local/lib/j2cfg/
|
||||||
|
|
||||||
ENV ANGIE_MODULES_DIR=/usr/lib/angie/modules
|
ENV ANGIE_MODULES_DIR=/usr/lib/angie/modules
|
||||||
|
|
||||||
@ -200,8 +196,7 @@ RUN apt-install-angie-mod.sh \
|
|||||||
zip \
|
zip \
|
||||||
zstd \
|
zstd \
|
||||||
; \
|
; \
|
||||||
apt-clean.sh ; \
|
apt-clean.sh
|
||||||
jdupes -1LSpr /usr/
|
|
||||||
|
|
||||||
## adjust permissions/ownership
|
## adjust permissions/ownership
|
||||||
RUN d='/etc/angie' ; \
|
RUN d='/etc/angie' ; \
|
||||||
|
@ -47,19 +47,7 @@ RUN divert_true() { divert-rm.sh "$1" ; ln -sv /bin/true "$1" ; } ; \
|
|||||||
divert_true /usr/bin/deb-systemd-invoke
|
divert_true /usr/bin/deb-systemd-invoke
|
||||||
|
|
||||||
RUN apt-env.sh apt-get update ; \
|
RUN apt-env.sh apt-get update ; \
|
||||||
apt-remove.sh \
|
|
||||||
ca-certificates \
|
|
||||||
e2fsprogs \
|
|
||||||
; \
|
|
||||||
apt-env.sh apt-get upgrade -y ; \
|
apt-env.sh apt-get upgrade -y ; \
|
||||||
apt-install.sh \
|
|
||||||
cron \
|
|
||||||
jdupes \
|
|
||||||
logrotate \
|
|
||||||
netbase \
|
|
||||||
openssl \
|
|
||||||
procps \
|
|
||||||
; \
|
|
||||||
apt-clean.sh
|
apt-clean.sh
|
||||||
|
|
||||||
## perl-base: hardlink->symlink
|
## perl-base: hardlink->symlink
|
||||||
@ -90,7 +78,6 @@ RUN set -f ; \
|
|||||||
chsh \
|
chsh \
|
||||||
cpgr \
|
cpgr \
|
||||||
cppw \
|
cppw \
|
||||||
crontab \
|
|
||||||
ctrlaltdel \
|
ctrlaltdel \
|
||||||
debugfs \
|
debugfs \
|
||||||
delgroup \
|
delgroup \
|
||||||
@ -207,6 +194,12 @@ RUN set -f ; \
|
|||||||
done ; \
|
done ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
RUN apt-remove.sh \
|
||||||
|
ca-certificates \
|
||||||
|
e2fsprogs \
|
||||||
|
; \
|
||||||
|
apt-clean.sh
|
||||||
|
|
||||||
## "docker.io/python"-specific cleanup
|
## "docker.io/python"-specific cleanup
|
||||||
RUN rm -f /root/.wget-hsts
|
RUN rm -f /root/.wget-hsts
|
||||||
|
|
||||||
@ -218,33 +211,17 @@ RUN pip-env.sh pip list --format freeze \
|
|||||||
RUN libpython="${PYTHON_SITE_PACKAGES%/*}" ; \
|
RUN libpython="${PYTHON_SITE_PACKAGES%/*}" ; \
|
||||||
rm -rfv \
|
rm -rfv \
|
||||||
/usr/local/bin/idle* \
|
/usr/local/bin/idle* \
|
||||||
/usr/local/bin/pydoc* \
|
|
||||||
"${libpython}/ensurepip/_bundled" \
|
"${libpython}/ensurepip/_bundled" \
|
||||||
"${libpython}/idlelib" \
|
"${libpython}/idlelib" \
|
||||||
"${libpython}/pydoc.py" \
|
|
||||||
"${libpython}/pydoc_data" \
|
|
||||||
"${libpython}/tkinter" \
|
"${libpython}/tkinter" \
|
||||||
"${libpython}/turtle.py" \
|
"${libpython}/turtle.py" \
|
||||||
"${libpython}/turtledemo" \
|
"${libpython}/turtledemo" \
|
||||||
; \
|
; \
|
||||||
rm -rfv \
|
|
||||||
"${PYTHON_SITE_PACKAGES}/pkg_resources/tests" \
|
|
||||||
"${PYTHON_SITE_PACKAGES}/setuptools/tests" \
|
|
||||||
"${PYTHON_SITE_PACKAGES}/setuptools/_distutils/tests" \
|
|
||||||
"${PYTHON_SITE_PACKAGES}/setuptools/_vendor/importlib_resources/tests" \
|
|
||||||
; \
|
|
||||||
find "${PYTHON_SITE_PACKAGES}/" -iname '*.exe' -ls -delete ; \
|
|
||||||
python-rm-cache.sh /usr/local
|
python-rm-cache.sh /usr/local
|
||||||
|
|
||||||
## adjust pip/certifi
|
|
||||||
RUN certifi_pem="${PYTHON_SITE_PACKAGES}/pip/_vendor/certifi/cacert.pem" ; \
|
|
||||||
rm -f "${certifi_pem}" ; \
|
|
||||||
ln -s /etc/ssl/certs/ca-certificates.crt "${certifi_pem}"
|
|
||||||
|
|
||||||
RUN find /usr/local/sbin/ ! -type d -ls -delete ; \
|
RUN find /usr/local/sbin/ ! -type d -ls -delete ; \
|
||||||
find /run/ -mindepth 1 -ls -delete || : ; \
|
find /run/ -mindepth 1 -ls -delete || : ; \
|
||||||
install -d -m 01777 /run/lock ; \
|
install -d -m 01777 /run/lock
|
||||||
jdupes -1LSpr /usr/
|
|
||||||
|
|
||||||
## ---
|
## ---
|
||||||
|
|
||||||
|
@ -41,19 +41,12 @@ RUN w=$(mktemp -d) ; : "${w:?}" ; \
|
|||||||
echo ; \
|
echo ; \
|
||||||
find "${PYTHON_SITE_PACKAGES}/" -type f -name '*.so*' -printf '%p\0' \
|
find "${PYTHON_SITE_PACKAGES}/" -type f -name '*.so*' -printf '%p\0' \
|
||||||
| sed -zE '/rust/d' \
|
| sed -zE '/rust/d' \
|
||||||
| xargs -0r strip --verbose --strip-debug --strip-unneeded ; \
|
| xargs -0r strip --verbose --strip-debug ; \
|
||||||
echo ; \
|
echo ; \
|
||||||
find "${PYTHON_SITE_PACKAGES}/" -type f -name '*.so*' -exec ls -l {} + ; \
|
find "${PYTHON_SITE_PACKAGES}/" -type f -name '*.so*' -exec ls -l {} + ; \
|
||||||
apt-remove.sh build-essential ; \
|
apt-remove.sh build-essential ; \
|
||||||
apt-clean.sh
|
apt-clean.sh
|
||||||
|
|
||||||
## avoid changing already present packages
|
|
||||||
RUN find "${PYTHON_SITE_PACKAGES}/" -mindepth 1 -maxdepth 1 -printf '%P\0' \
|
|
||||||
| sed -zEn \
|
|
||||||
-e '/^((pip|setuptools|wheel)-.+\.dist-info|distutils-precedence\.pth|_distutils_hack|pip|pkg_resources|setuptools|wheel)$/p' \
|
|
||||||
| env -C "${PYTHON_SITE_PACKAGES}" xargs -0r \
|
|
||||||
rm -rf
|
|
||||||
|
|
||||||
## ---
|
## ---
|
||||||
|
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
@ -80,11 +73,13 @@ RUN apt-install.sh \
|
|||||||
dumb-init \
|
dumb-init \
|
||||||
gettext-base \
|
gettext-base \
|
||||||
jq \
|
jq \
|
||||||
|
netbase \
|
||||||
netcat-openbsd \
|
netcat-openbsd \
|
||||||
|
openssl \
|
||||||
|
procps \
|
||||||
psmisc \
|
psmisc \
|
||||||
zstd \
|
zstd \
|
||||||
; \
|
; \
|
||||||
apt-clean.sh
|
apt-clean.sh
|
||||||
|
|
||||||
RUN find /usr/local/sbin/ ! -type d -ls -delete ; \
|
RUN find /usr/local/sbin/ ! -type d -ls -delete
|
||||||
jdupes -1LSpr /usr/
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
set -ef
|
set -ef
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
IMAGE_VERSION="${IMAGE_VERSION:-v0.0.3}"
|
IMAGE_VERSION="${IMAGE_VERSION:-v0.0.2}"
|
||||||
|
|
||||||
set -a
|
set -a
|
||||||
BUILDAH_FORMAT="${BUILDAH_FORMAT:-docker}"
|
BUILDAH_FORMAT="${BUILDAH_FORMAT:-docker}"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
set -ef
|
set -ef
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
IMAGE_VERSION="${IMAGE_VERSION:-v0.0.3}"
|
IMAGE_VERSION="${IMAGE_VERSION:-v0.0.2}"
|
||||||
|
|
||||||
set -a
|
set -a
|
||||||
BUILDAH_FORMAT="${BUILDAH_FORMAT:-docker}"
|
BUILDAH_FORMAT="${BUILDAH_FORMAT:-docker}"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
set -ef
|
set -ef
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
IMAGE_VERSION="${IMAGE_VERSION:-v0.0.3}"
|
IMAGE_VERSION="${IMAGE_VERSION:-v0.0.2}"
|
||||||
|
|
||||||
set -a
|
set -a
|
||||||
BUILDAH_FORMAT="${BUILDAH_FORMAT:-docker}"
|
BUILDAH_FORMAT="${BUILDAH_FORMAT:-docker}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
SHELL [ "/bin/sh", "-ec" ]
|
SHELL [ "/bin/sh", "-ec" ]
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
|
@ -11,7 +11,7 @@ server {
|
|||||||
Dockerfile:
|
Dockerfile:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
COPY /static/ /etc/angie/static/
|
COPY /static/ /etc/angie/static/
|
||||||
|
@ -58,7 +58,7 @@ services:
|
|||||||
|
|
||||||
my-cache:
|
my-cache:
|
||||||
container_name: my-cache
|
container_name: my-cache
|
||||||
image: docker.io/rockdrilla/angie-conv:v0.0.3
|
image: docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
restart: always
|
restart: always
|
||||||
privileged: true
|
privileged: true
|
||||||
stop_grace_period: 15s
|
stop_grace_period: 15s
|
||||||
|
@ -4,7 +4,7 @@ services:
|
|||||||
|
|
||||||
my-cache:
|
my-cache:
|
||||||
container_name: my-cache
|
container_name: my-cache
|
||||||
image: docker.io/rockdrilla/angie-conv:v0.0.3
|
image: docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
restart: always
|
restart: always
|
||||||
privileged: true
|
privileged: true
|
||||||
stop_grace_period: 15s
|
stop_grace_period: 15s
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
SHELL [ "/bin/sh", "-ec" ]
|
SHELL [ "/bin/sh", "-ec" ]
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Dockerfile:
|
Dockerfile:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
SHELL [ "/bin/sh", "-ec" ]
|
SHELL [ "/bin/sh", "-ec" ]
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Dockerfile:
|
Dockerfile:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
SHELL [ "/bin/sh", "-ec" ]
|
SHELL [ "/bin/sh", "-ec" ]
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Dockerfile:
|
Dockerfile:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
COPY /static/ /etc/angie/static/
|
COPY /static/ /etc/angie/static/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
SHELL [ "/bin/sh", "-ec" ]
|
SHELL [ "/bin/sh", "-ec" ]
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
|
@ -13,7 +13,7 @@ server {
|
|||||||
Dockerfile:
|
Dockerfile:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM docker.io/rockdrilla/angie-conv:v0.0.3
|
FROM docker.io/rockdrilla/angie-conv:v0.0.2
|
||||||
|
|
||||||
COPY /site/ /etc/angie/site/
|
COPY /site/ /etc/angie/site/
|
||||||
COPY /static/ /etc/angie/static/
|
COPY /static/ /etc/angie/static/
|
||||||
|
Loading…
Reference in New Issue
Block a user