remove .env and config.json file creation in dockerfile
This commit is contained in:
parent
0117e2da62
commit
1fff70f06c
1 changed files with 0 additions and 9 deletions
|
@ -6,13 +6,4 @@ WORKDIR /catask
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
RUN echo $'DB_HOST = 127.0.0.1\n\
|
|
||||||
DB_NAME = catask\n\
|
|
||||||
DB_USER = catask\n\
|
|
||||||
DB_PASS = catask\n\
|
|
||||||
DB_PORT = 3306\n\
|
|
||||||
ADMIN_PASSWORD = $ADMIN_PASSWORD\n\
|
|
||||||
APP_SECRET = $(python3 -c "import secrets; print(secrets.token_hex())")' > .env
|
|
||||||
COPY ./config.example.json ./config.json
|
|
||||||
|
|
||||||
ENTRYPOINT [ "gunicorn", "-w", "4", "app:app" ]
|
ENTRYPOINT [ "gunicorn", "-w", "4", "app:app" ]
|
Loading…
Add table
Reference in a new issue