mock / Dockerfile
VishalMysore's picture
Update Dockerfile
669f84a verified
raw
history blame
No virus
514 Bytes
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"]