Skip to content

Commit

Permalink
fix copy problem by direct mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed Apr 13, 2024
1 parent bf41ae3 commit 1395b53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
.env
public/menu.json
7 changes: 0 additions & 7 deletions builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,5 @@
# Navigate into the astro-big-doc directory
cd /astro-big-doc

# Copy necessary files from the user_repo
rm -rf /astro-big-doc/content
rm -rf /astro-big-doc/public
cp -R /user_repo/content /astro-big-doc
cp -R /user_repo/public /astro-big-doc
cp /user_repo/menu.yaml /astro-big-doc/menu.yaml

# Build the site
pnpm run build
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
astro-doc-builder:
build: ./builder
volumes:
- ./content:/user_repo/content
- ./public:/user_repo/public
- ./menu.yaml:/user_repo/menu.yaml
- ./content:/astro-big-doc/content
- ./public:/astro-big-doc/public
- ./menu.yaml:/astro-big-doc/menu.yaml
- ./dist:/astro-big-doc/dist
container_name: astro-doc-builder

0 comments on commit 1395b53

Please sign in to comment.