Skip to content

Commit

Permalink
code cleanup, added same functionality for frontend for company and tax
Browse files Browse the repository at this point in the history
  • Loading branch information
xenia1w committed Jun 23, 2024
1 parent ebe6b9b commit 7026795
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 40 deletions.
22 changes: 18 additions & 4 deletions src/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,23 @@ services:
ports:
- "39193:39193"

app:
company_frontend:
working_dir: /amos
build:
dockerfile: frontend_socket/international-dataspace-station/app.Dockerfile
build:
dockerfile: frontend_socket/international-dataspace-station/company_frontend.Dockerfile
ports:
- "3001:3001"

tax_advisor_frontend:
working_dir: /amos
build:
dockerfile: frontend_socket/international-dataspace-station/tax_advisor_frontend.Dockerfile
ports:
- "3002:3002"

bank_frontend:
working_dir: /amos
build:
dockerfile: frontend_socket/international-dataspace-station/bank_frontend.Dockerfile
ports:
- "3000:3000"
- "3003:3003"
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY --chown=node:node . .
RUN apk update
RUN apk add --no-cache curl jq

COPY frontend_socket/international-dataspace-station/package_bank.json ./package.json
COPY frontend_socket/international-dataspace-station/package.json ./package.json
COPY frontend_socket/international-dataspace-station/package-lock.json ./
RUN --mount=type=cache,target=/root/.npm npm ci
COPY . .
Expand All @@ -22,5 +22,4 @@ RUN npm install --loglevel verbose

EXPOSE 3003

CMD [ "sh", "-c", "PORT=3003 npm run dev" ]
#CMD [ "npm", "run", "dev" ]
CMD [ "sh", "-c", "PORT=3003 npm run dev" ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM node:22-alpine

USER root

RUN mkdir -p /amos/node_modules && chown -R node:node /amos

WORKDIR /amos

COPY --chown=node:node . .

RUN apk update
RUN apk add --no-cache curl jq

COPY frontend_socket/international-dataspace-station/package.json ./package.json
COPY frontend_socket/international-dataspace-station/package-lock.json ./
RUN --mount=type=cache,target=/root/.npm npm ci
COPY . .

COPY --chown=node:node frontend_socket/international-dataspace-station/. .

RUN npm install --loglevel verbose

EXPOSE 3001

CMD [ "sh", "-c", "PORT=3001 npm run dev" ]

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM node:22-alpine

USER root

RUN mkdir -p /amos/node_modules && chown -R node:node /amos

WORKDIR /amos

COPY --chown=node:node . .

RUN apk update
RUN apk add --no-cache curl jq

COPY frontend_socket/international-dataspace-station/package.json ./package.json
COPY frontend_socket/international-dataspace-station/package-lock.json ./
RUN --mount=type=cache,target=/root/.npm npm ci
COPY . .

COPY --chown=node:node frontend_socket/international-dataspace-station/. .

RUN npm install --loglevel verbose

EXPOSE 3002

CMD [ "sh", "-c", "PORT=3002 npm run dev" ]

0 comments on commit 7026795

Please sign in to comment.