Valist
Search…
Setup: Angular
This example demonstrates how to set up a configuration for an Angular application but can work with many other applications built with Node.js as well with slight modification.
As Angular does not require any custom server to run, the "static" runtime is used. After the build is finished, the content of "/app/dist/example-app/" will be hosted by a web server for static website hosting.

valist.yml

1
services:
2
runtime: static
3
dockerfile: valist.Dockerfile
4
dist: /app/dist/example_app
5
cmd: node_modules/.bin/ng build --prod
Copied!

valist.Dockerfile

1
FROM node:alpine
2
WORKDIR /app
3
COPY package*.json ./
4
RUN npm ci
5
COPY . .
Copied!
Last modified 1yr ago