Skip to content

Commit 04ccca1

Browse files
committed
feat(greet): added hello message and removed event roles
Signed-off-by: Jayne Doe <[email protected]>
1 parent 03ceaf8 commit 04ccca1

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
# Stage 1 - compile
2-
FROM node:11-alpine AS compile
2+
FROM node:12-alpine AS compile
33
WORKDIR /opt/web/app
44
COPY . .
55
RUN npm i && npm rebuild node-sass && npm run build
66

77
# Stage 2 - production install
8-
FROM node:11-alpine AS prod-install
8+
FROM node:12-alpine AS prod-install
99
WORKDIR /opt/web/app
1010
COPY --from=compile /opt/web/app/package.json /opt/web/app/package-lock.json ./
1111
RUN npm i --only=production
1212

1313
# Stage 3 - package files
14-
FROM node:11-alpine AS package
14+
FROM node:12-alpine AS package
1515
WORKDIR /opt/web/app
1616
COPY --from=compile /opt/web/app/bin ./bin
1717
COPY --from=compile /opt/web/app/config/default.js ./config/
1818
COPY --from=compile /opt/web/app/config/custom-environment-variables.json ./config/
1919
COPY --from=compile /opt/web/app/src ./src
2020
COPY --from=compile /opt/web/app/public ./public
21-
COPY --from=compile /opt/web/app/lock.html ./
2221
COPY --from=compile /opt/web/app/package.json ./
2322
COPY --from=compile /opt/web/app/package-lock.json ./
2423
COPY --from=prod-install /opt/web/app/node_modules ./node_modules
2524

26-
FROM node:11-alpine AS deploy
25+
FROM node:12-alpine AS deploy
2726
WORKDIR /opt/web/app
2827
COPY --from=package /opt/web/app/ ./
2928
EXPOSE 8080

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// SOFTWARE.
2222

2323
const fs = require('fs');
24-
const uuid = require('uuid/v4');
24+
const uuid = require('uuid').v4;
2525
const config = require('config');
2626
const restify = require('restify');
2727

src/middleware/pre_handlers/request_id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23-
const uuid = require('uuid/v4');
23+
const uuid = require('uuid').v4;
2424

2525
const requestId = (req, res, next) => {
2626
req.id = uuid();

0 commit comments

Comments
 (0)