Compare commits
No commits in common. "f7a7c4a375dff19bbf867677eeb51589e73c535d" and "9e435787c6674f743c69490dcc8f3ac8595dacac" have entirely different histories.
f7a7c4a375
...
9e435787c6
6 changed files with 21 additions and 52 deletions
|
@ -11,13 +11,10 @@ WORKDIR $APP_DIR
|
||||||
COPY ["setup.py", "requirements.txt", "MANIFEST.in", "README.rst", "AUTHORS.rst", "$APP_DIR/"]
|
COPY ["setup.py", "requirements.txt", "MANIFEST.in", "README.rst", "AUTHORS.rst", "$APP_DIR/"]
|
||||||
COPY ["./snappass", "$APP_DIR/snappass"]
|
COPY ["./snappass", "$APP_DIR/snappass"]
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
|
||||||
|
|
||||||
RUN pybabel compile -d snappass/translations
|
|
||||||
|
|
||||||
RUN python setup.py install && \
|
RUN python setup.py install && \
|
||||||
chown -R snappass $APP_DIR && \
|
chown -R snappass $APP_DIR && \
|
||||||
chgrp -R snappass $APP_DIR
|
chgrp -R snappass $APP_DIR
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
USER snappass
|
USER snappass
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
include *.rst LICENSE
|
include *.rst LICENSE
|
||||||
recursive-include snappass/static *
|
recursive-include snappass/static *
|
||||||
recursive-include snappass/templates *
|
recursive-include snappass/templates *
|
||||||
recursive-include snappass/translations *
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
coverage==7.6.0
|
coverage==7.6.0
|
||||||
fakeredis==2.24.1
|
fakeredis==2.23.4
|
||||||
flake8==7.1.1
|
flake8==7.0.0
|
||||||
freezegun==1.5.1
|
freezegun==1.5.1
|
||||||
pytest==8.3.2
|
pytest==8.1.0
|
||||||
pytest-cov==5.0.0
|
pytest-cov==5.0.0
|
||||||
tox==4.18.0
|
tox==4.16.0
|
||||||
bumpversion==0.6.0
|
bumpversion==0.6.0
|
||||||
wheel==0.44.0
|
wheel==0.43.0
|
||||||
|
|
|
@ -4,41 +4,15 @@ services:
|
||||||
|
|
||||||
snappass:
|
snappass:
|
||||||
build: .
|
build: .
|
||||||
#image: pinterest/snappass
|
image: pinterest/snappass
|
||||||
#ports:
|
ports:
|
||||||
# - "5000:5000"
|
- "5000:5000"
|
||||||
stop_signal: SIGINT
|
stop_signal: SIGINT
|
||||||
environment:
|
environment:
|
||||||
- REDIS_HOST=redis
|
- REDIS_HOST=redis
|
||||||
- NO_SSL=True
|
- NO_SSL=True
|
||||||
- VIRTUAL_HOST=share.brothertec.eu
|
|
||||||
- VIRTUAL_PORT=5000
|
|
||||||
- LETSENCRYPT_HOST=share.brothertec.eu
|
|
||||||
- LETSENCRYPT_EMAIL=admin@brothertec.eu
|
|
||||||
|
|
||||||
restart: unless-stopped
|
|
||||||
labels:
|
|
||||||
- "com.centurylinklabs.watchtower.enable=false"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
- proxy
|
|
||||||
- edge-tier
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: "redis:latest"
|
image: "redis:latest"
|
||||||
restart: unless-stopped
|
|
||||||
labels:
|
|
||||||
- "com.centurylinklabs.watchtower.enable=true"
|
|
||||||
|
|
||||||
|
|
||||||
networks:
|
|
||||||
proxy:
|
|
||||||
name: nginx-proxy
|
|
||||||
external: true
|
|
||||||
edge-tier:
|
|
||||||
name: edge
|
|
||||||
external: true
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
cryptography==43.0.1
|
cryptography==42.0.8
|
||||||
Flask==3.0.0
|
Flask==3.0.0
|
||||||
itsdangerous==2.2.0
|
itsdangerous==2.2.0
|
||||||
Jinja2==3.1.4
|
Jinja2==3.1.4
|
||||||
|
|
|
@ -11,8 +11,7 @@ from urllib.parse import quote_plus
|
||||||
from urllib.parse import unquote_plus
|
from urllib.parse import unquote_plus
|
||||||
from urllib.parse import urljoin
|
from urllib.parse import urljoin
|
||||||
from distutils.util import strtobool
|
from distutils.util import strtobool
|
||||||
# _ is required to get the Jinja templates translated
|
from flask_babel import Babel
|
||||||
from flask_babel import Babel, _ # noqa: F401
|
|
||||||
|
|
||||||
NO_SSL = bool(strtobool(os.environ.get('NO_SSL', 'False')))
|
NO_SSL = bool(strtobool(os.environ.get('NO_SSL', 'False')))
|
||||||
URL_PREFIX = os.environ.get('URL_PREFIX', None)
|
URL_PREFIX = os.environ.get('URL_PREFIX', None)
|
||||||
|
|
Loading…
Reference in a new issue