fix: two processes whould work

This commit is contained in:
2022-09-02 19:12:40 +02:00
parent d3c5c51fb7
commit 8285fc4590
2 changed files with 12 additions and 3 deletions

View File

@@ -8,10 +8,10 @@ RUN npm install
RUN npm install -g ts-node typescript
RUN apk update && apk add bash -y
EXPOSE 7272
COPY . .
CMD ts-node --transpile-only index.ts
CMD node webserver.js
CMD bash start.sh

9
start.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -m
node webserver.js &
ts-node --transpile-only index.ts
fg %1