Skip to content

Commit c08f5ce

Browse files
committed
PI-2375 update docker files
1 parent 237fe7f commit c08f5ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile.adjudications-api

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ FROM node:current-alpine3.17
33
RUN apk update && apk add bash curl --no-cache
44

55
RUN curl https://manage-adjudications-api-dev.hmpps.service.justice.gov.uk/v3/api-docs > adjudications_api.json && \
6+
sed -i "s+\*/\*+application/json+g" adjudications_api.json && \
67
npm install -g @stoplight/prism-cli
78

89
RUN adduser -D user
910

1011
USER user
1112

12-
CMD prism mock -p 4010 -h 0.0.0.0 /adjudications_api.json
13+
CMD prism mock -v trace -p 4010 -h 0.0.0.0 /adjudications_api.json

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ services:
102102
dockerfile: Dockerfile.adjudications-api
103103
container_name: adjudications-api
104104
healthcheck:
105-
test: 'wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/reported-adjudications/prisoner/123 -O /dev/null'
105+
test: 'wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/reported-adjudications/hearings?hearingDate=1916-07-16 -O /dev/null'
106106
ports:
107107
- '4045:4010'
108108

0 commit comments

Comments
 (0)