mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
Dockerfile to init/upgrade the database, and associated changes
This commit is contained in:
10
Dockerfile.db-create
Normal file
10
Dockerfile.db-create
Normal 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" ]
|
||||
Reference in New Issue
Block a user