i am trying to dockerize my angular app and i am getting an error("sh: 1: ng: Permission denied") when i am running the container. More specific my dockerfile is
# Create image based on the official Node 6 image from dockerhub
FROM node:8.10.0
# Create a directory where our app will be placed
RUN mkdir -p /app
# Change directory so that our commands run inside this new directory
WORKDIR /app
# Copy dependency definitions
COPY package.json /app
# Install dependecies
RUN npm install
# Get all the code needed to run the app
COPY . /app
# Expose the port the app runs in
EXPOSE 4200
# Serve the app
CMD ["npm", "start"]
Firstly i create docker image successfully but when i am going to run it i am getting the error above.
The docker running to a remote server with centos operating system.The simple solution i think is to change the rights of start script but i dont know how i can do that.I will appreciate anything help.
