Skip to content

Commit e341c45

Browse files
committed
example hackernews
1 parent 078c2b8 commit e341c45

5 files changed

Lines changed: 5635 additions & 8 deletions

File tree

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM node:lts-alpine3.19
2+
RUN npm install -g pnpm
23
WORKDIR /app
34
RUN apk add --no-cache bash
45
RUN apk add --no-cache socat
5-
COPY package.json package.json
6-
RUN npm install
6+
COPY package.json pnpm-lock.yaml* ./
7+
RUN pnpm install --frozen-lockfile
78
COPY . .
8-
RUN npm run build
9+
RUN pnpm run build
910
EXPOSE 8080 8081
1011
HEALTHCHECK --interval=10s --timeout=1s --retries=10 CMD wget --spider http://localhost:8081/v1/healthcheck
11-
CMD ["npm", "start"]
12+
CMD ["pnpm", "start"]

examples/hackernews/reactive_service/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "module",
44
"version": "1.0.0",
55
"scripts": {
6-
"build": "tsc"
6+
"build": "tsc",
7+
"start": "node server.js"
78
},
89
"author": "SkipLabs",
910
"license": "MIT",

0 commit comments

Comments
 (0)