feat: support create database via cmd line (#417)

This commit is contained in:
Товарищ программист
2022-01-13 11:35:13 +08:00
committed by GitHub
parent 728fe11a3c
commit 8d54bfad8a
3 changed files with 23 additions and 5 deletions

View File

@ -20,7 +20,7 @@ COPY --from=FRONT /web/build /web/build
CMD chmod 777 /tmp && service mariadb start&&\
if [ "${MYSQL_ROOT_PASSWORD}" = "" ] ;then MYSQL_ROOT_PASSWORD=123456 ; fi&&\
mysqladmin -u root password ${MYSQL_ROOT_PASSWORD} &&\
./wait-for-it localhost:3306 -- ./server
./wait-for-it localhost:3306 -- ./server --createDatabase=true
FROM alpine:latest