Loading build/.env +1 −1 Original line number Diff line number Diff line NODE_IMAGE_TAG=18.12.1-alpine3.16 NODE_IMAGE_TAG=20.16.0-alpine3.20 build/Dockerfile +3 −3 Original line number Diff line number Diff line ARG NODE_IMAGE_TAG ARG NODE_IMAGE_TAG=lts-alpine FROM node:${NODE_IMAGE_TAG} Loading @@ -8,11 +8,11 @@ ENV NODE_ENV="production" EXPOSE 3050 CMD ["server-app", "-b"] HEALTHCHECK --interval=30s --timeout=15s --start-period=1m --retries=3 \ CMD wget --spider -q http://localhost:3050 || exit 1 CMD ["server-app", "-b"] ADD redmic-project-web-*.tgz / WORKDIR /package Loading server-app/src/exposure.js +1 −2 Original line number Diff line number Diff line const express = require('express'), bodyParser = require('body-parser'), path = require('path'), production = !!parseInt(process.env.PRODUCTION, 10), Loading Loading @@ -123,7 +122,7 @@ function exposeContents(app, directoryName) { function expose(app) { app.use(bodyParser.urlencoded({ extended: false })); app.use(express.urlencoded({ extended: false })); if (params.useBuilt) { exposeContents(app, 'dist'); Loading Loading
build/.env +1 −1 Original line number Diff line number Diff line NODE_IMAGE_TAG=18.12.1-alpine3.16 NODE_IMAGE_TAG=20.16.0-alpine3.20
build/Dockerfile +3 −3 Original line number Diff line number Diff line ARG NODE_IMAGE_TAG ARG NODE_IMAGE_TAG=lts-alpine FROM node:${NODE_IMAGE_TAG} Loading @@ -8,11 +8,11 @@ ENV NODE_ENV="production" EXPOSE 3050 CMD ["server-app", "-b"] HEALTHCHECK --interval=30s --timeout=15s --start-period=1m --retries=3 \ CMD wget --spider -q http://localhost:3050 || exit 1 CMD ["server-app", "-b"] ADD redmic-project-web-*.tgz / WORKDIR /package Loading
server-app/src/exposure.js +1 −2 Original line number Diff line number Diff line const express = require('express'), bodyParser = require('body-parser'), path = require('path'), production = !!parseInt(process.env.PRODUCTION, 10), Loading Loading @@ -123,7 +122,7 @@ function exposeContents(app, directoryName) { function expose(app) { app.use(bodyParser.urlencoded({ extended: false })); app.use(express.urlencoded({ extended: false })); if (params.useBuilt) { exposeContents(app, 'dist'); Loading