45 lines
897 B
Docker
45 lines
897 B
Docker
|
FROM node:lts-bookworm
|
||
|
ENV SHELL bash
|
||
|
ENV PNPM_HOME="/pnpm"
|
||
|
ENV PATH="$PNPM_HOME:$PATH"
|
||
|
RUN npm install -g pnpm@8.15.1
|
||
|
RUN pnpm setup
|
||
|
|
||
|
RUN pnpm install -g @quasar/cli@2.2.1
|
||
|
|
||
|
RUN apt-get -y --fix-missing update
|
||
|
RUN apt-get -y --fix-missing upgrade
|
||
|
RUN apt-get -y --no-install-recommends install apt-utils
|
||
|
RUN apt-get install --fix-missing -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY \
|
||
|
package.json \
|
||
|
.npmrc \
|
||
|
pnpm-lock.yaml \
|
||
|
./
|
||
|
|
||
|
RUN pnpm install
|
||
|
RUN pnpm install cypress
|
||
|
RUN npx cypress install
|
||
|
|
||
|
COPY \
|
||
|
quasar.config.js \
|
||
|
index.html \
|
||
|
jsconfig.json \
|
||
|
quasar.extensions.json \
|
||
|
.eslintignore \
|
||
|
.eslintrc.cjs \
|
||
|
postcss.config.js \
|
||
|
cypress.config.js \
|
||
|
./
|
||
|
|
||
|
COPY src src
|
||
|
COPY test/cypress test/cypress
|
||
|
COPY public public
|
||
|
|
||
|
# RUN npx quasar build
|
||
|
|
||
|
CMD ["npx", "quasar", "dev"]
|