Skip to content

Commit

Permalink
fixes build problem in dockerfile in prod stage (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
sw360cab authored Sep 12, 2024
1 parent 9bca29c commit 0d3fe64
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.production
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM node:18.18.0-alpine3.18 as build
FROM node:18.18.0-alpine3.18 AS build

WORKDIR /app

COPY . .

WORKDIR /app/docusaurus

RUN yarn run download-docs
RUN yarn install
RUN yarn build

Expand Down
2 changes: 1 addition & 1 deletion docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/download-docs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

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

Expand Down

0 comments on commit 0d3fe64

Please sign in to comment.