Deploy angular on rpi 4

Hello i want to deploy angular on rpi4
here is my docker.template file

FROM balenalib/%%BALENA_ARCH%%-node:14-buster-run

WORKDIR /usr/src/app

RUN npm install -g angular-http-server

COPY . ./

CMD [“angular-http-server”, “–path”, “dist\front”]

and i have an error [angular-http-server,: not found

Hi thomiyi
Can you show your docker-compose.yml file? You may need to map the default angular-http-server to port 80.

In your docker-compose.yml port should look something like this:

    image: angular
    container_name: angular
    restart: always
      - 80:8080 # external/internal, remember right to left

Also can you open a terminal in the dash and enter this

npm list --global

Hello i solve my problem using a custom script in my package.json

Hi @thomiyi glad to hear you solved your issue!! :slight_smile: