Skip to content

Commit

Permalink
changed the dockerfile to have the installation of pm2 directly at th…
Browse files Browse the repository at this point in the history
…e container building phase
  • Loading branch information
kiloutyg committed Mar 21, 2024
1 parent a5595d7 commit a7c5afa
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
1 change: 1 addition & 0 deletions API/DockerfileGHA
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ COPY . .

# Install the dependencies
RUN npm install --only=production
RUN npm install pm2 -g

# Exposing server port
EXPOSE 52200
2 changes: 1 addition & 1 deletion API/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"pdf-lib": "^1.17.1",
"pdfkit": "^0.14.0",
"sharp": "^0.33.2",
"text-to-image": "^5.2.0",
"text-to-image": "^5.2.0"
},
"devDependencies": {
"jest": "^29.7.0",
Expand Down
48 changes: 24 additions & 24 deletions env-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ ${PROXY_ENV}
- ./Docs:/var/www/Docs
labels:
- traefik.enable=true
- traefik.http.routers.webdap.rule=PathPrefix(\`/posignapi\`)
- traefik.http.routers.webdap.middlewares=strip-webdap-prefix
- traefik.http.middlewares.strip-webdap-prefix.stripprefix.prefixes=/posignapi
- traefik.http.routers.webdap.entrypoints=web
- traefik.http.routers.webapi.rule=PathPrefix(\`/posignapi\`)
- traefik.http.routers.webapi.middlewares=strip-webapi-prefix
- traefik.http.middlewares.strip-webapi-prefix.stripprefix.prefixes=/posignapi
- traefik.http.routers.webapi.entrypoints=web
depends_on:
- database
networks:
Expand All @@ -96,10 +96,10 @@ ${PROXY_ENV}
APP_TIMEZONE: ${TIMEZONE}
labels:
- traefik.enable=true
- traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`)
- traefik.http.routers.webchart.middlewares=strip-webchart-prefix
- traefik.http.middlewares.strip-webchart-prefix.stripprefix.prefixes=/posign
- traefik.http.routers.webchart.entrypoints=web
- traefik.http.routers.webposign.rule=PathPrefix(\`/posign\`)
- traefik.http.routers.webposign.middlewares=strip-webposign-prefix
- traefik.http.middlewares.strip-webposign-prefix.stripprefix.prefixes=/posign
- traefik.http.routers.webposign.entrypoints=web
networks:
vpcbr:
ipv4_address: 172.23.0.5
Expand Down Expand Up @@ -159,10 +159,10 @@ ${PROXY_ENV}
- ./Docs:/var/www/Docs
labels:
- traefik.enable=true
- traefik.http.routers.webdap.rule=PathPrefix(\`/posignapi\`)
- traefik.http.routers.webdap.middlewares=strip-webdap-prefix
- traefik.http.middlewares.strip-webdap-prefix.stripprefix.prefixes=/posignapi
- traefik.http.routers.webdap.entrypoints=web
- traefik.http.routers.webposignapi.rule=PathPrefix(\`/posignapi\`)
- traefik.http.routers.webposignapi.middlewares=strip-webposignapi-prefix
- traefik.http.middlewares.strip-webposignapi-prefix.stripprefix.prefixes=/posignapi
- traefik.http.routers.webposignapi.entrypoints=web
depends_on:
- database
networks:
Expand All @@ -181,10 +181,10 @@ ${PROXY_ENV}
APP_TIMEZONE: ${TIMEZONE}
labels:
- traefik.enable=true
- traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`)
- traefik.http.routers.webchart.middlewares=strip-webchart-prefix
- traefik.http.middlewares.strip-webchart-prefix.stripprefix.prefixes=/posign
- traefik.http.routers.webchart.entrypoints=web
- traefik.http.routers.webposign.rule=PathPrefix(\`/posign\`)
- traefik.http.routers.webposign.middlewares=strip-webposign-prefix
- traefik.http.middlewares.strip-webposign-prefix.stripprefix.prefixes=/posign
- traefik.http.routers.webposign.entrypoints=web
networks:
vpcbr:
ipv4_address: 172.23.0.5
Expand Down Expand Up @@ -234,10 +234,10 @@ ${PROXY_ENV}
- ./Docs:/var/www/Docs
labels:
- traefik.enable=true
- traefik.http.routers.webdap.rule=PathPrefix(\`/posignapi\`)
- traefik.http.routers.webdap.middlewares=strip-webdap-prefix
- traefik.http.middlewares.strip-webdap-prefix.stripprefix.prefixes=/posignapi
- traefik.http.routers.webdap.entrypoints=web
- traefik.http.routers.webposignapi.rule=PathPrefix(\`/posignapi\`)
- traefik.http.routers.webposignapi.middlewares=strip-webposignapi-prefix
- traefik.http.middlewares.strip-webposignapi-prefix.stripprefix.prefixes=/posignapi
- traefik.http.routers.webposignapi.entrypoints=web
depends_on:
- database
networks:
Expand All @@ -256,10 +256,10 @@ ${PROXY_ENV}
APP_TIMEZONE: ${TIMEZONE}
labels:
- traefik.enable=true
- traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`)
- traefik.http.routers.webchart.middlewares=strip-webchart-prefix
- traefik.http.middlewares.strip-webchart-prefix.stripprefix.prefixes=/posign
- traefik.http.routers.webchart.entrypoints=web
- traefik.http.routers.webposign.rule=PathPrefix(\`/posign\`)
- traefik.http.routers.webposign.middlewares=strip-webposign-prefix
- traefik.http.middlewares.strip-webposign-prefix.stripprefix.prefixes=/posign
- traefik.http.routers.webposign.entrypoints=web
networks:
vpcbr:
ipv4_address: 172.23.0.5
Expand Down

0 comments on commit a7c5afa

Please sign in to comment.