mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Build multi-platform images
Refactor GitHub Actions workflow for build Run Dockle and Trivy, upload sarif reports to GitHub Refactor Dockerfiles based on best practices
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
**/node_modules
|
||||
**/npm-debug.log
|
||||
**/.env
|
||||
**/.env
|
||||
.eslint*
|
||||
Dockerfile
|
||||
|
||||
@@ -24,6 +24,12 @@ ENV NODE_ENV production
|
||||
COPY --from=builder /app ./
|
||||
RUN npm prune --omit=dev
|
||||
|
||||
# CIS-DI-0001
|
||||
RUN addgroup -S addon && adduser -S -G addon addon
|
||||
USER addon
|
||||
|
||||
EXPOSE 7000
|
||||
|
||||
ENTRYPOINT [ "pm2-runtime", "start", "ecosystem.config.cjs"]
|
||||
ENTRYPOINT [ "pm2-runtime", "start", "ecosystem.config.cjs"]
|
||||
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
||||
CMD pm2 ping || exit 1
|
||||
|
||||
Reference in New Issue
Block a user