You've already forked snikket-web-portal
Compare commits
1 Commits
fix/suppor
...
feature/wt
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1ecb4ce80 |
16
Dockerfile
16
Dockerfile
@@ -17,8 +17,7 @@ COPY babel.cfg /opt/snikket-web-portal/babel.cfg
|
|||||||
|
|
||||||
WORKDIR /opt/snikket-web-portal
|
WORKDIR /opt/snikket-web-portal
|
||||||
|
|
||||||
RUN set -eu; \
|
RUN pip3 install -r requirements.txt; \
|
||||||
pip3 install -r requirements.txt; \
|
|
||||||
pip3 install -r build-requirements.txt; \
|
pip3 install -r build-requirements.txt; \
|
||||||
make;
|
make;
|
||||||
|
|
||||||
@@ -36,21 +35,20 @@ ENV SNIKKET_WEB_PROSODY_ENDPOINT=http://127.0.0.1:5280/
|
|||||||
|
|
||||||
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}
|
||||||
|
|
||||||
COPY requirements.txt /opt/snikket-web-portal/requirements.txt
|
|
||||||
|
|
||||||
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; \
|
python3 python3-pip python3-setuptools python3-wheel; \
|
||||||
pip3 install -r requirements.txt; \
|
|
||||||
apt-get remove -y --autoremove build-essential libpython3-dev; \
|
|
||||||
apt-get clean ; rm -rf /var/lib/apt/lists; \
|
apt-get clean ; rm -rf /var/lib/apt/lists; \
|
||||||
pip3 install hypercorn; \
|
pip3 install hypercorn; \
|
||||||
rm -rf /root/.cache;
|
rm -rf /root/.cache;
|
||||||
|
|
||||||
|
WORKDIR /opt/snikket-web-portal
|
||||||
|
|
||||||
|
COPY requirements.txt /opt/snikket-web-portal/requirements.txt
|
||||||
|
RUN pip3 install -r requirements.txt; rm -rf /root/.cache;
|
||||||
|
|
||||||
COPY --from=build /opt/snikket-web-portal/snikket_web/ /opt/snikket-web-portal/snikket_web
|
COPY --from=build /opt/snikket-web-portal/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
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ hsluv~=0.0.2
|
|||||||
flask-babel~=1.0
|
flask-babel~=1.0
|
||||||
email-validator~=1.1
|
email-validator~=1.1
|
||||||
environ-config~=20.0
|
environ-config~=20.0
|
||||||
wtforms~=2.3
|
wtforms~=3.0
|
||||||
typing-extensions
|
typing-extensions
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import aiohttp
|
|||||||
import quart.flask_patch
|
import quart.flask_patch
|
||||||
|
|
||||||
import wtforms
|
import wtforms
|
||||||
import wtforms.fields.html5
|
|
||||||
|
|
||||||
from quart import (
|
from quart import (
|
||||||
Blueprint,
|
Blueprint,
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ bp = quart.Blueprint("main", __name__)
|
|||||||
|
|
||||||
|
|
||||||
class LoginForm(BaseForm):
|
class LoginForm(BaseForm):
|
||||||
address = wtforms.TextField(
|
address = wtforms.StringField(
|
||||||
_l("Address"),
|
_l("Address"),
|
||||||
validators=[wtforms.validators.InputRequired()],
|
validators=[wtforms.validators.InputRequired()],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ _ACCESS_MODEL_CHOICES = [
|
|||||||
|
|
||||||
|
|
||||||
class ProfileForm(BaseForm):
|
class ProfileForm(BaseForm):
|
||||||
nickname = wtforms.TextField(
|
nickname = wtforms.StringField(
|
||||||
_l("Display name"),
|
_l("Display name"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user