Skip to content

Commit

Permalink
#146 Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed May 29, 2024
1 parent c1f595e commit b25ddba
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/linters/.checkov.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
quite: true
skip-check: CKV_DOCKER_7
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ COPY ./rootfs /

COPY --from=go_builder "/output/linux/template-go" "/app/template-go"

HEALTHCHECK CMD ["/app/healthcheck.sh"]

# Runtime environment variables.

ENV LD_LIBRARY_PATH=/opt/senzing/g2/lib/

# Runtime execution.

USER 1001

WORKDIR /app
ENTRYPOINT ["/app/template-go"]
Empty file removed rootfs/.dummy.txt
Empty file.
12 changes: 12 additions & 0 deletions rootfs/app/container-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

# Return codes.

OK=0
NOT_OK=1

# Tests.

echo "Doing testing."

exit ${OK}
12 changes: 12 additions & 0 deletions rootfs/app/healthcheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

# Return codes.

OK=0
NOT_OK=1

# Tests.

echo "Doing healthtest."

exit ${OK}

0 comments on commit b25ddba

Please sign in to comment.