From 40829267c4e77b316a60604c63bad79124713b89 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Fri, 1 Sep 2023 18:35:21 +0200 Subject: [PATCH] fix(extra): dockerfile errors and tsc fallback (#101) --- templates/extra/Dockerfile.JS.sern | 2 +- templates/extra/Dockerfile.TS.sern | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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