chore: Add copy-schema script, update Dockerfile schema path, and adjust npm prod workflow
This commit is contained in:
parent
70e64448e5
commit
437321ef6d
3 changed files with 71 additions and 51 deletions
|
|
@ -17,10 +17,9 @@ ARG API_VERSION
|
|||
ENV API_VERSION=${API_VERSION}
|
||||
WORKDIR /usr/app
|
||||
COPY package*.json ./
|
||||
COPY schema ./
|
||||
RUN npm install --production
|
||||
|
||||
COPY --from=builder /usr/app/dist ./dist
|
||||
|
||||
CMD node dist/index.js
|
||||
ADD schema ./dist/schema
|
||||
CMD node ./dist/index.js
|
||||
EXPOSE 4000
|
||||
Loading…
Add table
Add a link
Reference in a new issue