Skip to content

Commit 0d3fe64

Browse files
authored
fixes build problem in dockerfile in prod stage (#54)
1 parent 9bca29c commit 0d3fe64

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile.production

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
FROM node:18.18.0-alpine3.18 as build
1+
FROM node:18.18.0-alpine3.18 AS build
22

33
WORKDIR /app
44

55
COPY . .
66

77
WORKDIR /app/docusaurus
88

9+
RUN yarn run download-docs
910
RUN yarn install
1011
RUN yarn build
1112

docusaurus/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"docusaurus": "docusaurus",
77
"start": "docusaurus start",
8-
"download-docs": "bash ../scripts/download-docs.sh",
8+
"download-docs": "sh ../scripts/download-docs.sh",
99
"build": "docusaurus build",
1010
"swizzle": "docusaurus swizzle",
1111
"meili-scrape": "node ./scripts/meilisearch.js",

scripts/download-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
ROOT_DIR="$(dirname "$0")/.."
44

0 commit comments

Comments
 (0)