Skip to content

Commit 5b37ad3

Browse files
committed
updated dockerfile to work with latest juiceshop/readme
1 parent bfe8587 commit 5b37ad3

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Dockerfile.from-app-image

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Start from an existing app image
2-
FROM bkimminich/juice-shop:v12.7.0
2+
# FROM bkimminich/juice-shop:v12.7.0
3+
FROM bkimminich/juice-shop:latest as installer
34

5+
FROM node:20
46
WORKDIR /juice-shop
7+
COPY --from=installer /juice-shop .
58

69
# Add in the Contrast agent
710
RUN npm install --production @contrast/agent
811

12+
EXPOSE 3000
13+
914
# Change the startup command to preload Contrast agent
10-
CMD ["node", "-r", "@contrast/agent", "build/app"]
15+
CMD ["node", "--import", "@contrast/agent", "build/app"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You may use environment variables to configure Contrast:
2626

2727
```shell
2828
docker run --rm -it -p 3000:3000 \
29-
-e CONTRAST__API__KEY=<value> \
29+
-e CONTRAST__API__API_KEY=<value> \
3030
-e CONTRAST__API__SERVICE_KEY=<value> \
3131
-e CONTRAST__API__URL=<value> \
3232
-e CONTRAST__API__USER_NAME=<value> \

0 commit comments

Comments
 (0)