Skip to content

Commit dbcde51

Browse files
committed
Add Tini
1 parent c701bb5 commit dbcde51

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM node:12-alpine
22

3-
RUN apk --no-cache add wireguard-tools iptables ip6tables inotify-tools
3+
RUN apk --no-cache add wireguard-tools iptables ip6tables inotify-tools tini
4+
RUN deluser --remove-home node
45

56
WORKDIR /usr/src/app
67

server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node dist/createConfig.js
22
wg-quick up wg0
3-
node dist/index.js
3+
exec /sbin/tini -- node dist/index.js

0 commit comments

Comments
 (0)