Changing order of Dockerfile instructions to improve layering
This commit is contained in:
parent
203dea910b
commit
6d35307cd6
1 changed files with 3 additions and 2 deletions
|
|
@ -14,14 +14,15 @@ USER node
|
|||
|
||||
COPY --chown=node:node package.json package.json
|
||||
COPY --chown=node:node package-lock.json package-lock.json
|
||||
|
||||
RUN CXX=g++-12 npm install
|
||||
|
||||
COPY --chown=node:node database database
|
||||
COPY --chown=node:node data-source.ts data-source.ts
|
||||
COPY --chown=node:node src src
|
||||
COPY --chown=node:node tsconfig.build.json tsconfig.build.json
|
||||
COPY --chown=node:node tsconfig.json tsconfig.json
|
||||
|
||||
RUN CXX=g++-12 npm install
|
||||
|
||||
RUN npm run migrations
|
||||
|
||||
ARG GIT_COMMIT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue