Skip to content

Commit 81ea622

Browse files
authored
removed usage of forever (or any similar tool) (#92)
* removed usage of process managers
1 parent b8b8055 commit 81ea622

File tree

4 files changed

+20
-1388
lines changed

4 files changed

+20
-1388
lines changed

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ WORKDIR /root/cf-runtime
44

55
RUN apk -U upgrade
66

7-
RUN apk add --no-cache bash git openssh-client tini
8-
9-
COPY package.json ./
7+
# install cf-runtime required binaries
8+
RUN apk add --no-cache bash git openssh-client
109

11-
COPY yarn.lock ./
10+
COPY package.json yarn.lock ./
1211

1312
# install cf-runtime required binaries
1413
RUN apk add --no-cache --virtual deps python3 make g++ && \
@@ -20,7 +19,4 @@ RUN apk add --no-cache --virtual deps python3 make g++ && \
2019
# copy app files
2120
COPY . ./
2221

23-
# Set tini as entrypoint
24-
ENTRYPOINT ["/sbin/tini", "--"]
25-
26-
CMD ["node", "node_modules/.bin/forever", "--minUptime", "1", "--spinSleepTime", "1000", "-c", "node", "lib/index.js"]
22+
CMD ["node", "lib/index.js"]

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"docker-events": "0.0.2",
1414
"dockerode": "^2.5.8",
1515
"express": "^4.17.3",
16-
"forever": "^3.0.4",
1716
"lodash": "^4.17.21",
1817
"q": "^1.5.1",
1918
"request": "^2.88.2",

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 1.7.0
1+
version: 1.8.0

0 commit comments

Comments
 (0)