Spaces:
Runtime error
Runtime error
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","-d", "-h", "0.0.0.0", "-p","7860 ","minikube.json"] |