This commit is contained in:
David Arranz 2024-09-07 14:16:37 +02:00
parent 0b95cca007
commit 50c9bf4cca

View File

@ -9,14 +9,14 @@ WORKDIR /api
# Copiar los archivos de dependencias
COPY package.json ./
RUN ls -la ./
# Instalar dependencias
RUN yarn install
# Copiar el resto del código de la aplicación
COPY . .
RUN ls -la ./
# Ejecutar el build
# Si hay un error, mostrarlo en detalle.
RUN yarn run build || { echo 'Error during build'; exit 1; }