VishalMysore commited on
Commit
d0110c0
1 Parent(s): bb45e31

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -1
Dockerfile CHANGED
@@ -1,2 +1,13 @@
1
  FROM stoplight/prism:4.4.3
2
- prism mock
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM stoplight/prism:4.4.3
2
+
3
+ # Set the working directory in the container
4
+ WORKDIR /app
5
+
6
+ # Copy your OpenAPI specification to the container
7
+ COPY ./path/to/your/openapi.yaml /app/openapi.yaml
8
+
9
+ # Expose the port Prism will run on
10
+ EXPOSE 4010
11
+
12
+ # Command to run Prism and mock your API
13
+ CMD ["mock", "-h", "0.0.0.0", "/app/openapi.yaml"]