Skip to content

Commit

Permalink
Merge pull request #202 from drackp2m/dev
Browse files Browse the repository at this point in the history
💻 ci: use package-lock again, copy dist to src
  • Loading branch information
drackp2m authored Nov 12, 2024
2 parents a678a34 + 63cf611 commit b6f06a5
Show file tree
Hide file tree
Showing 3 changed files with 6,700 additions and 1,331 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ FROM base AS deps

USER node

COPY package.json ./
COPY package.json package-lock* ./

RUN npm install
RUN npm ci



Expand Down Expand Up @@ -74,8 +74,8 @@ EXPOSE $API_PORT

USER node

COPY --from=build-api /usr/src/app/dist ./dist
COPY --from=build-api /usr/src/app/package.json ./package.json
COPY --from=deps /usr/src/app/node_modules ./node_modules
COPY --from=build-api /usr/src/app/dist/apps/api ./src

CMD ["node", "dist/apps/api/main.js"]
CMD ["node", "src/main.js"]
Loading

0 comments on commit b6f06a5

Please sign in to comment.