forked from verdnatura/salix-front
25 lines
407 B
Docker
25 lines
407 B
Docker
FROM node:20-bullseye as base
|
|
|
|
FROM base AS production
|
|
RUN npm install -g @quasar/cli
|
|
WORKDIR /app
|
|
COPY dist/spa ./
|
|
CMD ["quasar", "serve", "./", "--history", "--hostname", "0.0.0.0"]
|
|
|
|
FROM base AS test
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
COPY src src
|
|
COPY test test
|
|
COPY quasar quasar
|
|
|
|
RUN npm i
|
|
|
|
CMD ["npx", "quasar", "dev"]
|
|
|
|
FROM base AS local
|
|
WORKDIR /app
|
|
CMD ["npx", "quasar", "dev"]
|
|
|
|
|