Skip to content

Commit

Permalink
fix: fixed docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
marinoandrea committed Feb 29, 2024
1 parent 752e30f commit 686b9f6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions Dockerfile.app
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ WORKDIR /tmp/deps
COPY --chown=node:node package.json .
COPY --chown=node:node package-lock.json .
COPY --chown=node:node packages/rimun-api/package.json ./packages/rimun-api/
COPY --chown=node:node packages/rimun-pdf/package.json ./packages/rimun-pdf/
COPY --chown=node:node packages/rimun-app/package.json ./packages/rimun-app/

RUN npm ci --include=dev
Expand All @@ -24,15 +23,13 @@ WORKDIR /tmp/build
COPY --chown=node:node package.json .
COPY --chown=node:node packages/rimun-api/package.json ./packages/rimun-api/
COPY --chown=node:node packages/rimun-api/package.json ./packages/rimun-api/
COPY --chown=node:node packages/rimun-pdf/package.json ./packages/rimun-pdf/
COPY --chown=node:node packages/rimun-app/package.json ./packages/rimun-app/

# copy tsconfigs
COPY --chown=node:node tsconfig.base.json .
COPY --chown=node:node packages/rimun-api/tsconfig.json ./packages/rimun-api/
COPY --chown=node:node packages/rimun-app/tsconfig.json ./packages/rimun-app/
COPY --chown=node:node packages/rimun-app/tsconfig.node.json ./packages/rimun-app/
COPY --chown=node:node packages/rimun-pdf/tsconfig.json ./packages/rimun-pdf/

# copy source code
COPY --chown=node:node packages/rimun-app/index.html ./packages/rimun-app/
Expand All @@ -44,16 +41,13 @@ COPY --chown=node:node packages/rimun-app/public ./packages/rimun-app/public

COPY --chown=node:node packages/rimun-api/src ./packages/rimun-api/src

COPY --chown=node:node packages/rimun-pdf/src ./packages/rimun-pdf/src

# copy deps
COPY --chown=node:node --from=deps-container /tmp/deps/node_modules ./node_modules

RUN chown -R node:node /tmp/build

USER node

RUN npm -w @rimun/pdf run build
RUN npm -w @rimun/api run build
RUN npm -w @rimun/app run build

Expand Down
1 change: 0 additions & 1 deletion packages/rimun-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"dependencies": {
"@prisma/client": "^5.10.2",
"@rimun/pdf": "*",
"@sentry/node": "^7.38.0",
"@sentry/tracing": "^7.38.0",
"@trpc/server": "^10.12.0",
Expand Down

0 comments on commit 686b9f6

Please sign in to comment.