Skip to content

Commit

Permalink
feat: add docker setting files
Browse files Browse the repository at this point in the history
  • Loading branch information
taniguchiiqqq committed Nov 15, 2023
1 parent 789f3f2 commit 5c64557
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM stoplight/prism:5

# get the latest OAS file from nishiki-document repo
RUN wget https://raw.githubusercontent.com/genesis-tech-tribe/nishiki-documents/c1ea7d5a2fd12e1271551fc672b7141f5777ffdf/web-api/nishiki-web-api.yaml \
&& mv nishiki-web-api.yaml /tmp/api.yml
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'
services:
prism:
build:
context: .
dockerfile: Dockerfile
command: 'mock -h 0.0.0.0 /tmp/api.yml'
ports:
# Serve the mocked API locally as available on port 8080
- '8080:4010'

0 comments on commit 5c64557

Please sign in to comment.