You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-27 22:18:22 +02:00
Finalize merge with kaiyou/feat-multiple-db
This commit is contained in:
@@ -8,8 +8,9 @@ RUN mkdir -p /app
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements-prod.txt requirements.txt
|
COPY requirements-prod.txt requirements.txt
|
||||||
RUN apk add --no-cache openssl curl \
|
RUN apk add --no-cache libressl curl \
|
||||||
&& apk add --no-cache --virtual build-dep openssl-dev libffi-dev python3-dev build-base \
|
&& apk add --no-cache --virtual build-dep \
|
||||||
|
libressl-dev libffi-dev python3-dev build-base postgresql-dev mariadb-connector-c-dev \
|
||||||
&& pip3 install -r requirements.txt \
|
&& pip3 install -r requirements.txt \
|
||||||
&& apk del --no-cache build-dep
|
&& apk del --no-cache build-dep
|
||||||
|
|
||||||
|
|||||||
@@ -46,3 +46,4 @@ WTForms==2.2.1
|
|||||||
WTForms-Components==0.10.3
|
WTForms-Components==0.10.3
|
||||||
psycopg2
|
psycopg2
|
||||||
tenacity
|
tenacity
|
||||||
|
mysqlclient
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import os
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
conn = psycopg2.connect('user=postgres')
|
conn = psycopg2.connect(user='postgres')
|
||||||
queries = anosql.load_queries('postgres', '/conf/queries.sql')
|
queries = anosql.load_queries('postgres', '/conf/queries.sql')
|
||||||
# Mailu user
|
# Mailu user
|
||||||
queries.create_mailu_user(conn)
|
queries.create_mailu_user(conn)
|
||||||
|
|||||||
Reference in New Issue
Block a user