QnA/frontend/dockerfile
2023-08-29 19:10:54 -06:00

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" ]