Commit 5db8b7db authored by JackV's avatar JackV
Browse files

Docker integration fixup

parent 3278823f
......@@ -5,7 +5,7 @@ RUN mkdir /uus
WORKDIR /uus
COPY uus.py /uus
COPY admin /uus
COPY admin /uus/admin
COPY requirements.txt /uus
RUN pip3 install -r requirements.txt
......
......@@ -14,4 +14,4 @@ services:
restart: always
entrypoint: redis-server --appendonly yes
volumes:
- /data:/opt/uus
- /opt/uus:/data
......@@ -13,7 +13,7 @@ app.config['REDIS_URL'] = os.environ.get('REDIS_URL', 'redis://127.0.0.1:6379/0'
redis_store = FlaskRedis()
redis_store.init_app(app)
pure_string = re.compile(r'^\w+$')
admin_dir = os.path.join(os.getcwd(), 'admin')
admin_dir = os.path.join(os.path.dirname(__file__), 'admin')
def handle_redirect(path):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment