From 0d3fe642c6fdaf6fd17c5618f7b54e9ebee6372c Mon Sep 17 00:00:00 2001 From: Sergio Maria Matone Date: Thu, 12 Sep 2024 14:46:06 +0200 Subject: [PATCH] fixes build problem in dockerfile in prod stage (#54) --- Dockerfile.production | 3 ++- docusaurus/package.json | 2 +- scripts/download-docs.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile.production b/Dockerfile.production index 21686dc..aa7c396 100644 --- a/Dockerfile.production +++ b/Dockerfile.production @@ -1,4 +1,4 @@ -FROM node:18.18.0-alpine3.18 as build +FROM node:18.18.0-alpine3.18 AS build WORKDIR /app @@ -6,6 +6,7 @@ COPY . . WORKDIR /app/docusaurus +RUN yarn run download-docs RUN yarn install RUN yarn build diff --git a/docusaurus/package.json b/docusaurus/package.json index 1b1b5f3..e361568 100644 --- a/docusaurus/package.json +++ b/docusaurus/package.json @@ -5,7 +5,7 @@ "scripts": { "docusaurus": "docusaurus", "start": "docusaurus start", - "download-docs": "bash ../scripts/download-docs.sh", + "download-docs": "sh ../scripts/download-docs.sh", "build": "docusaurus build", "swizzle": "docusaurus swizzle", "meili-scrape": "node ./scripts/meilisearch.js", diff --git a/scripts/download-docs.sh b/scripts/download-docs.sh index 867452c..e5b7448 100755 --- a/scripts/download-docs.sh +++ b/scripts/download-docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh ROOT_DIR="$(dirname "$0")/.."