17 lines
No EOL
250 B
Text
17 lines
No EOL
250 B
Text
from node:19 as base
|
|
|
|
workdir /app
|
|
|
|
copy package*.json /app
|
|
run npm install
|
|
copy . /app
|
|
|
|
|
|
from base as dev
|
|
cmd [ "/bin/bash" ]
|
|
|
|
|
|
from base as prod
|
|
run npm install --global http-server
|
|
run npm run build
|
|
cmd [ "http-server", "./dist", "--no-dotfiles" ] |