thomiyi
1
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
zoobot
4
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:
services:
theangularservice:
image: angular
container_name: angular
restart: always
ports:
- 80:8080 # external/internal, remember right to left
zoobot
5
Also can you open a terminal in the dash and enter this
npm list --global
thomiyi
7
Hello i solve my problem using a custom script in my package.json
zoobot
8
Hi @thomiyi glad to hear you solved your issue!! 