File size: 514 Bytes
091e3f0
d0110c0
 
 
 
091e3f0
 
 
 
 
 
 
 
da8ef9e
d0110c0
091e3f0
d0110c0
 
091e3f0
669f84a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:14

# Set the working directory in the container
WORKDIR /app

# Copy the application files to the container
COPY . .

# Install application dependencies and Prism CLI
RUN npm install
RUN npm install -g @stoplight/prism-cli

# Make sure your OpenAPI spec file is in the container
#COPY ./path/to/your/openapi.yaml /app/openapi.yaml

# Expose the port Prism listens on
EXPOSE 4010

# Start Prism and mock the API when the container launches
CMD ["prism", "mock", "-h", "0.0.0.0", "-p","7860 ","fake.json"]