You've already forked snikket-web-portal
Install as many packages as possible from Debian
The only missing piece appears to be environ-config. This **fails to start** with ``` ImportError: cannot import name '_app_ctx_stack' from 'quart' (/usr/lib/python3/dist-packages/quart/__init__.py) ```
This commit is contained in:
25
Dockerfile
25
Dockerfile
@@ -4,23 +4,16 @@ RUN set -eu; \
|
|||||||
export DEBIAN_FRONTEND=noninteractive ; \
|
export DEBIAN_FRONTEND=noninteractive ; \
|
||||||
apt-get update ; \
|
apt-get update ; \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
python3 python3-pip python3-setuptools python3-wheel \
|
python3 python3-mypy python3-dotenv python3-toml python3-babel python3-distutils \
|
||||||
libpython3-dev \
|
sassc make;
|
||||||
sassc \
|
|
||||||
make build-essential;
|
|
||||||
|
|
||||||
COPY requirements.txt /opt/snikket-web-portal/requirements.txt
|
|
||||||
COPY build-requirements.txt /opt/snikket-web-portal/build-requirements.txt
|
|
||||||
COPY Makefile /opt/snikket-web-portal/Makefile
|
COPY Makefile /opt/snikket-web-portal/Makefile
|
||||||
COPY snikket_web/ /opt/snikket-web-portal/snikket_web
|
COPY snikket_web/ /opt/snikket-web-portal/snikket_web
|
||||||
COPY babel.cfg /opt/snikket-web-portal/babel.cfg
|
COPY babel.cfg /opt/snikket-web-portal/babel.cfg
|
||||||
|
|
||||||
WORKDIR /opt/snikket-web-portal
|
WORKDIR /opt/snikket-web-portal
|
||||||
|
|
||||||
RUN set -eu; \
|
RUN make
|
||||||
pip3 install --break-system-packages -r requirements.txt; \
|
|
||||||
pip3 install --break-system-packages -r build-requirements.txt; \
|
|
||||||
make;
|
|
||||||
|
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
@@ -34,19 +27,19 @@ ENV SNIKKET_WEB_PYENV=/etc/snikket-web-portal/env.py
|
|||||||
|
|
||||||
ENV SNIKKET_WEB_PROSODY_ENDPOINT=http://127.0.0.1:5280/
|
ENV SNIKKET_WEB_PROSODY_ENDPOINT=http://127.0.0.1:5280/
|
||||||
|
|
||||||
COPY requirements.txt /opt/snikket-web-portal/requirements.txt
|
|
||||||
|
|
||||||
WORKDIR /opt/snikket-web-portal
|
WORKDIR /opt/snikket-web-portal
|
||||||
|
|
||||||
RUN set -eu; \
|
RUN set -eu; \
|
||||||
export DEBIAN_FRONTEND=noninteractive ; \
|
export DEBIAN_FRONTEND=noninteractive ; \
|
||||||
apt-get update ; \
|
apt-get update ; \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
python3 python3-pip python3-setuptools python3-wheel build-essential libpython3-dev netcat-traditional; \
|
netcat-traditional python3 python3-setuptools python3-pip \
|
||||||
pip3 install --break-system-packages -r requirements.txt; \
|
python3-aiohttp python3-email-validator python3-flask-babel \
|
||||||
apt-get remove -y --autoremove build-essential libpython3-dev; \
|
python3-flaskext.wtf python3-hsluv python3-hypercorn \
|
||||||
|
python3-quart python3-typing-extensions python3-wtforms ; \
|
||||||
|
pip3 install --break-system-packages environ-config ; \
|
||||||
|
apt-get remove -y --purge python3-pip python3-setuptools; \
|
||||||
apt-get clean ; rm -rf /var/lib/apt/lists; \
|
apt-get clean ; rm -rf /var/lib/apt/lists; \
|
||||||
pip3 install --break-system-packages hypercorn; \
|
|
||||||
rm -rf /root/.cache;
|
rm -rf /root/.cache;
|
||||||
|
|
||||||
HEALTHCHECK CMD nc -zv ${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_INTERFACE:-127.0.0.1} ${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT:-5765}
|
HEALTHCHECK CMD nc -zv ${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_INTERFACE:-127.0.0.1} ${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT:-5765}
|
||||||
|
|||||||
Reference in New Issue
Block a user