diff --git a/Dockerfile b/Dockerfile index 61381d4..db00de1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file +CMD bash start.sh \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..c426b23 --- /dev/null +++ b/start.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -m + +node webserver.js & + +ts-node --transpile-only index.ts + +fg %1 \ No newline at end of file