Spaces:
Runtime error
Runtime error
Commit
•
d0110c0
1
Parent(s):
bb45e31
Update Dockerfile
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
@@ -1,2 +1,13 @@
|
|
1 |
FROM stoplight/prism:4.4.3
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|