mirror of
https://github.com/sern-handler/cli
synced 2026-06-06 01:16:53 +00:00
fix(extra): dockerfile errors and tsc fallback (#101)
This commit is contained in:
@@ -8,4 +8,4 @@ RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN node src/index.js
|
||||
CMD node src/index.js
|
||||
@@ -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
|
||||
CMD node dist/index.js
|
||||
|
||||
Reference in New Issue
Block a user