mock / Dockerfile
VishalMysore's picture
Update Dockerfile
f95deaa verified
raw
history blame
No virus
520 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 7860
# Start Prism and mock the API when the container launches
CMD ["prism", "mock", "-h", "0.0.0.0", "-p","7860 ","kibernetes.json"]