Skip to content

Commit

Permalink
feat: Add 'ci_analyzer' command alias it can use inside docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesin11 committed May 23, 2020
1 parent 69c4cc9 commit b967e34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ RUN npm install --production
COPY . .
COPY --from=ts-builder /build/dist ./dist

# Make "ci_analyzer" command alias
RUN cd dist && ln -s index.js ci_analyzer && chmod +x ci_analyzer
ENV PATH=/ci_analyzer/dist:$PATH

# Resolve nodejs pid=1 problem
RUN apk add --no-cache tini
ENTRYPOINT [ "/sbin/tini", "--", "node", "/ci_analyzer/dist/index.js" ]

WORKDIR /app
WORKDIR /app
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import yargs from 'yargs'
import { loadConfig } from './config/config'
import { CompositRunner } from './runner/runner'
Expand Down

0 comments on commit b967e34

Please sign in to comment.