Skip to content

Commit

Permalink
Merge pull request #325 from hmcts/Fix/c100_ithc_vulnerabilities
Browse files Browse the repository at this point in the history
C100 ITHC Vulnerabilities fix
  • Loading branch information
AlokDatta authored May 22, 2024
2 parents 99e6099 + adbf05d commit fbc0d07
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- master

permissions: read-all

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://help.github.com/en/articles/about-code-owners

@hmcts/private-law
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ FROM hmctspublic.azurecr.io/base/java:17-distroless

ENV APP prl-dgs-api.jar

# Change to non-root privilege
USER hmcts

COPY lib/AI-Agent.xml /opt/app/
COPY build/libs/$APP /opt/app/
COPY lib/applicationinsights.json /opt/app/

EXPOSE 4007

CMD ["prl-dgs-api.jar"]


HEALTHCHECK --interval=30s --timeout=15s --start-period=60s --retries=3 \
CMD wget -q --spider localhost:4007/health || exit 1

0 comments on commit fbc0d07

Please sign in to comment.