Dockerfile to init/upgrade the database, and associated changes

This commit is contained in:
Dave Horton
2021-11-08 10:54:57 -05:00
parent 4bf79fe42b
commit 8117f77955
6 changed files with 144 additions and 35 deletions

10
Dockerfile.db-create Normal file
View File

@@ -0,0 +1,10 @@
FROM node:16
WORKDIR /opt/app/
COPY package.json ./
RUN npm install
RUN npm prune
COPY . /opt/app
ARG NODE_ENV
ENV NODE_ENV $NODE_ENV
CMD [ "npm", "run", "upgrade-db" ]