I'm trying to run docker run ID npm run test
but I get the following error: docker-entrypoint.sh: 38: exec: npm: not found
.
I'm very new to Docker and I tried this (adding the entrypoint ENTRYPOINT ["/usr/src/app/api-entrypoint.sh"]
) but it doesn't seem to work.
What do I need to change?
Dockerfile
FROM node:13.12.0-alpine as builder
WORKDIR '/app'
COPY package.json .
RUN npm install
COPY . .
RUN npm run build
FROM nginx
COPY --from=builder /app/build /usr/share/nginx/html