Skip to content

docker not started nps not found #255

@Paul75

Description

@Paul75

I want to use in docker : my config is :

FROM node:lts-alpine

ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait /wait
RUN chmod +x /wait

# Install python/pip
RUN apk update && apk add --no-cache gcc wget make g++ python3 py3-pip

WORKDIR /usr/src/app

RUN npm cache clear --force

# Install runtime dependencies
RUN npm install npm -g --force
RUN npm install yarn -g --force

# Copy app source to work directory
COPY . /usr/src/app

RUN yarn install

EXPOSE 3000

CMD /wait && npm start serve

But got this error :

crous78-catalogue-api  | > catalogue_applications-server@1.0.0 start
crous78-catalogue-api  | > nps "serve"
crous78-catalogue-api  | 
crous78-catalogue-api  | sh: nps: not found
crous78-catalogue-api exited with code 127

Thanks for help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions