[chore] Production environment tweaks
This commit is contained in:
parent
dc8ffb9050
commit
f42e70df27
@ -14,7 +14,10 @@ RUN npm install --only=production
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
VOLUME /usr/src/app/data
|
VOLUME /usr/src/app/data
|
||||||
RUN npm run db:schema
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD [ ".//wait-for-mariadb.sh" ]
|
||||||
|
CMD [ "npm", "run db:schema" ]
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
|
|
||||||
|
|||||||
5
wait-for-mariadb.sh
Executable file
5
wait-for-mariadb.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
while ! mysqladmin ping -h"mariadb" --silent; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
Loading…
Reference in New Issue
Block a user