Finally playing nice together

This commit is contained in:
2021-03-07 15:34:04 +11:00
parent ddc07e4605
commit da8bba93eb
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
FROM node:15 FROM node:15
WORKDIR "/app" WORKDIR "/app"
COPY package*.json ./ COPY package*.json ./
+1 -1
View File
@@ -140,7 +140,7 @@ CMD ["sleep 10 && npm start"]
const sqlfile = ` const sqlfile = `
CREATE DATABASE IF NOT EXISTS ${appName}; CREATE DATABASE IF NOT EXISTS ${appName};
CREATE USER IF NOT EXISTS '${appDBUser}'@'%' IDENTIFIED BY '${appDBPass}'; CREATE USER IF NOT EXISTS '${appDBUser}'@'%' IDENTIFIED BY '${appDBPass}';
GRANT ALL PRIVILEGES ON ${appName}.* TO '${appDBUser}'@'%'; GRANT ALL PRIVILEGES ON ${appName}.* TO '${appDBUser}'@'%';
`; `;
fs.writeFileSync('docker-compose.yml', ymlfile); fs.writeFileSync('docker-compose.yml', ymlfile);