diff --git a/templates/extra/Dockerfile.JS.sern b/templates/extra/Dockerfile.JS.sern index 4ee33dc..2631ee3 100644 --- a/templates/extra/Dockerfile.JS.sern +++ b/templates/extra/Dockerfile.JS.sern @@ -8,4 +8,4 @@ RUN npm install COPY . . -RUN node src/index.js \ No newline at end of file +CMD node src/index.js \ No newline at end of file diff --git a/templates/extra/Dockerfile.TS.sern b/templates/extra/Dockerfile.TS.sern index fe30972..ee2654e 100644 --- a/templates/extra/Dockerfile.TS.sern +++ b/templates/extra/Dockerfile.TS.sern @@ -6,8 +6,10 @@ COPY package.json ./ RUN npm install +RUN npm install -D typescript + COPY . . -RUN tsc --build +RUN tsc --build || npx -p typescript tsc --build -RUN node dist/index.js \ No newline at end of file +CMD node dist/index.js