lab

recipes (latest)

Published 2025-11-27 10:07:29 +00:00 by myve

Installation

docker pull hub.myvelabs.com/lab/recipes:latest
sha256:350d3f47da31b35e8b8533bee9e8195b8f21b340ab4b31f099b802dfa8189755

About this package

Application for managing recipes, planning meals, building shopping lists and much much more!

Image layers

ADD alpine-minirootfs-3.22.2-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
ENV PYTHON_VERSION=3.13.9
ENV PYTHON_SHA256=ed5ef34cda36cfa2f3a340f07cac7e7814f91c7f3c411f6d3562323a866c5c66
RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps bluez-dev bzip2-dev dpkg-dev dpkg findutils gcc gdbm-dev gnupg libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tar tcl-dev tk tk-dev util-linux-dev xz xz-dev zlib-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; arch="$(apk --print-arch)"; case "$arch" in x86_64|aarch64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; x86) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-network --virtual .python-rundeps ; apk del --no-network .build-deps; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
CMD ["python3"]
RUN /bin/sh -c apk add --no-cache postgresql-libs postgresql-client gettext zlib libjpeg libwebp libxml2-dev libxslt-dev openldap git libgcc libstdc++ nginx tini envsubst nodejs npm # buildkit
ENV PYTHONUNBUFFERED=1 DOCKER=true
EXPOSE [80/tcp 8080/tcp]
RUN /bin/sh -c mkdir /opt/recipes # buildkit
WORKDIR /opt/recipes
COPY requirements.txt ./ # buildkit
RUN /bin/sh -c sed -i '/# Development/,$d' requirements.txt # buildkit
RUN /bin/sh -c apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev zlib-dev jpeg-dev libwebp-dev openssl-dev libffi-dev cargo openldap-dev python3-dev xmlsec-dev xmlsec build-base g++ curl rust && python -m venv venv && /opt/recipes/venv/bin/python -m pip install --upgrade pip && venv/bin/pip debug -v && venv/bin/pip install wheel==0.45.1 && venv/bin/pip install setuptools_rust==1.10.2 && venv/bin/pip install -r requirements.txt --no-cache-dir && apk --purge del .build-deps # buildkit
COPY . ./ # buildkit
RUN /bin/sh -c rm -rf /etc/nginx/http.d && ln -s /opt/recipes/http.d /etc/nginx/http.d && ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log # buildkit
RUN /bin/sh -c /opt/recipes/venv/bin/python version.py # buildkit
RUN /bin/sh -c find . -type d -name ".git" | xargs rm -rf # buildkit
RUN /bin/sh -c chmod +x boot.sh # buildkit
ENTRYPOINT ["/sbin/tini" "--" "/opt/recipes/boot.sh"]

Labels

Key Value
org.opencontainers.image.created 2025-11-24T19:41:26.908Z
org.opencontainers.image.description Application for managing recipes, planning meals, building shopping lists and much much more!
org.opencontainers.image.licenses NOASSERTION
org.opencontainers.image.revision fc40b5220baefa835ff1dfe336fe92b6f3cdfe7c
org.opencontainers.image.source https://github.com/TandoorRecipes/recipes
org.opencontainers.image.title recipes
org.opencontainers.image.url https://github.com/TandoorRecipes/recipes
org.opencontainers.image.version 2.3.6
Details
Container
2025-11-27 10:07:29 +00:00
1
OCI / Docker
linux/amd64
NOASSERTION
187 MiB
Versions (1) View all
latest 2025-11-27