Skip to content

Commit

Permalink
Update dockerfiles (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduwardo authored Apr 16, 2024
1 parent a6f1a75 commit e637dad
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 25 deletions.
4 changes: 2 additions & 2 deletions packages/probing-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY tsconfig.json /app/
COPY turbo.json /app/
COPY ./packages/probing-api /app/packages/probing-api
RUN rm -rf /app/packages/probing-api/dist
COPY ./packages/probing-api/dist/src /app/packages/probing-api/dist
COPY ./packages/probing-eservice-operations/open-api /app/packages/probing-eservice-operations/open-api
COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models
COPY ./packages/clients/eservice-operations /app/packages/clients/eservice-operations

RUN pnpm build

RUN rm -rf /app/packages/probing-api/dist/test

WORKDIR /app/packages/probing-api

CMD [ "node", "." ]
2 changes: 1 addition & 1 deletion packages/probing-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pagopa-interop-probing-api",
"version": "1.0.0",
"description": "PagoPA probing api",
"main": "dist",
"main": "dist/src",
"type": "module",
"scripts": {
"test": "vitest --config ./test/vitest.config.ts",
Expand Down
3 changes: 1 addition & 2 deletions packages/probing-caller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY tsconfig.json /app/
COPY turbo.json /app/
COPY ./packages/probing-caller /app/packages/probing-caller
RUN rm -rf /app/packages/probing-caller/dist
COPY ./packages/probing-caller/dist/src /app/packages/probing-caller/dist
COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models

RUN pnpm build
RUN rm -rf /app/packages/probing-caller/dist/test

WORKDIR /app/packages/probing-caller

Expand Down
2 changes: 1 addition & 1 deletion packages/probing-caller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pagopa-interop-probing-caller",
"version": "1.0.0",
"description": "PagoPA probing caller",
"main": "dist",
"main": "dist/src",
"type": "module",
"scripts": {
"test": "vitest --config ./test/vitest.config.ts",
Expand Down
3 changes: 1 addition & 2 deletions packages/probing-eservice-operations/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY tsconfig.json /app/
COPY turbo.json /app/
COPY ./packages/probing-eservice-operations /app/packages/probing-eservice-operations
RUN rm -rf /app/packages/probing-eservice-operations/dist
COPY ./packages/probing-eservice-operations/dist/src /app/packages/probing-eservice-operations/dist
COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models
COPY ./packages/clients/eservice-operations /app/packages/clients/eservice-operations

RUN pnpm build
RUN rm -rf /app/packages/probing-eservice-operations/dist/test

WORKDIR /app/packages/probing-eservice-operations

Expand Down
2 changes: 1 addition & 1 deletion packages/probing-eservice-operations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pagopa-interop-probing-eservice-operations",
"version": "1.0.0",
"description": "PagoPA probing eservice operations",
"main": "dist",
"main": "dist/src",
"type": "module",
"scripts": {
"test": "vitest --config ./test/vitest.config.ts",
Expand Down
3 changes: 1 addition & 2 deletions packages/probing-eservice-registry-reader/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY tsconfig.json /app/
COPY turbo.json /app/
COPY ./packages/probing-eservice-registry-reader /app/packages/probing-eservice-registry-reader
RUN rm -rf /app/packages/probing-eservice-registry-reader/dist
COPY ./packages/probing-eservice-registry-reader/dist/src /app/packages/probing-eservice-registry-reader/dist
COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models

RUN pnpm build
RUN rm -rf /app/packages/probing-eservice-registry-reader/dist/test

WORKDIR /app/packages/probing-eservice-registry-reader

Expand Down
2 changes: 1 addition & 1 deletion packages/probing-eservice-registry-reader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pagopa-interop-probing-eservice-registry-reader",
"version": "1.0.0",
"description": "PagoPA probing eservice registry reader",
"main": "dist",
"main": "dist/src",
"type": "module",
"scripts": {
"test": "vitest --config ./test/vitest.config.ts",
Expand Down
3 changes: 1 addition & 2 deletions packages/probing-eservice-registry-updater/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY tsconfig.json /app/
COPY turbo.json /app/
COPY ./packages/probing-eservice-registry-updater /app/packages/probing-eservice-registry-updater
RUN rm -rf /app/packages/probing-eservice-registry-updater/dist
COPY ./packages/probing-eservice-registry-updater/dist/src /app/packages/probing-eservice-registry-updater/dist
COPY ./packages/probing-eservice-operations/open-api /app/packages/probing-eservice-operations/open-api
COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models
COPY ./packages/clients/eservice-operations /app/packages/clients/eservice-operations

RUN pnpm build
RUN rm -rf /app/packages/probing-eservice-registry-updater/dist/test

WORKDIR /app/packages/probing-eservice-registry-updater

Expand Down
2 changes: 1 addition & 1 deletion packages/probing-eservice-registry-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pagopa-interop-probing-eservice-registry-updater",
"version": "1.0.0",
"description": "PagoPA probing eservice registry updater",
"main": "dist",
"main": "dist/src",
"type": "module",
"scripts": {
"test": "vitest --config ./test/vitest.config.ts",
Expand Down
3 changes: 1 addition & 2 deletions packages/probing-response-updater/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY tsconfig.json /app/
COPY turbo.json /app/
COPY ./packages/probing-response-updater /app/packages/probing-response-updater
RUN rm -rf /app/packages/probing-response-updater/dist
COPY ./packages/probing-response-updater/dist/src /app/packages/probing-response-updater/dist
COPY ./packages/probing-eservice-operations/open-api /app/packages/probing-eservice-operations/open-api
COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models
COPY ./packages/clients/eservice-operations /app/packages/clients/eservice-operations

RUN pnpm build
RUN rm -rf /app/packages/probing-response-updater/dist/test

WORKDIR /app/packages/probing-response-updater

Expand Down
2 changes: 1 addition & 1 deletion packages/probing-response-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pagopa-interop-probing-response-updater",
"version": "1.0.0",
"description": "PagoPA probing response updater",
"main": "dist",
"main": "dist/src",
"type": "module",
"scripts": {
"test": "vitest --config ./test/vitest.config.ts",
Expand Down
3 changes: 1 addition & 2 deletions packages/probing-scheduler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY tsconfig.json /app/
COPY turbo.json /app/
COPY ./packages/probing-scheduler /app/packages/probing-scheduler
RUN rm -rf /app/packages/probing-scheduler/dist
COPY ./packages/probing-scheduler/dist/src /app/packages/probing-scheduler/dist
COPY ./packages/probing-eservice-operations/open-api /app/packages/probing-eservice-operations/open-api
COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models
COPY ./packages/clients/eservice-operations /app/packages/clients/eservice-operations

RUN pnpm build
RUN rm -rf /app/packages/probing-scheduler/dist/test

WORKDIR /app/packages/probing-scheduler

Expand Down
2 changes: 1 addition & 1 deletion packages/probing-scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pagopa-interop-probing-scheduler",
"version": "1.0.0",
"description": "PagoPA probing scheduler",
"main": "dist",
"main": "dist/src",
"type": "module",
"scripts": {
"test": "vitest --config ./test/vitest.config.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/probing-statistics-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models

RUN pnpm build
RUN rm -rf /app/packages/probing-statistics-api/dist/test

WORKDIR /app/packages/probing-statistics-api

Expand Down
2 changes: 1 addition & 1 deletion packages/probing-statistics-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pagopa-interop-probing-statistics-api",
"version": "1.0.0",
"description": "PagoPA probing statistics api",
"main": "dist",
"main": "dist/src",
"type": "module",
"scripts": {
"test": "vitest --config ./test/vitest.config.ts",
Expand Down
3 changes: 1 addition & 2 deletions packages/probing-telemetry-writer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY tsconfig.json /app/
COPY turbo.json /app/
COPY ./packages/probing-telemetry-writer /app/packages/probing-telemetry-writer
RUN rm -rf /app/packages/probing-telemetry-writer/dist
COPY ./packages/probing-telemetry-writer/dist/src /app/packages/probing-telemetry-writer/dist
COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models

RUN pnpm build
RUN rm -rf /app/packages/probing-telemetry-writer/dist/test

WORKDIR /app/packages/probing-telemetry-writer

Expand Down
2 changes: 1 addition & 1 deletion packages/probing-telemetry-writer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pagopa-interop-probing-telemetry-writer",
"version": "1.0.0",
"description": "PagoPA probing telemetry writer",
"main": "dist",
"main": "dist/src",
"type": "module",
"scripts": {
"test": "vitest --config ./test/vitest.config.ts",
Expand Down

0 comments on commit e637dad

Please sign in to comment.