16 lines
431 B
Docker
16 lines
431 B
Docker
FROM alexmorenovn/vndev:latest
|
|
|
|
WORKDIR /app
|
|
|
|
# Copiar package.json y pnpm-lock.yaml para evitar reinstalaciones innecesarias
|
|
COPY package.json pnpm-lock.yaml ./
|
|
|
|
# Copiar node_modules localmente si existe
|
|
COPY node_modules ./node_modules
|
|
|
|
# Instalar dependencias, pero sin reinstalar Cypress si ya existe
|
|
RUN pnpm install --frozen-lockfile && pnpm exec cypress install
|
|
|
|
# Definir el directorio de trabajo por defecto
|
|
WORKDIR /app
|