Skip to content

Commit

Permalink
still cannot serve
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed Apr 13, 2024
1 parent 3eed8ff commit 90d6832
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
10 changes: 5 additions & 5 deletions builder/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/MicroWebStacks/astro-big-doc.git /astro-big-doc
WORKDIR /astro-big-doc

# Install
RUN pnpm install

# Copy scripts into the container
COPY build.sh build.sh
EXPOSE 3001

# Set build.sh as the entrypoint
ENTRYPOINT ["./build.sh"]
RUN pnpm astro telemetry disable

ENTRYPOINT ["pnpm", "run"]
CMD ["build"]
7 changes: 0 additions & 7 deletions builder/build.sh

This file was deleted.

5 changes: 3 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
version: "3.8"

services:
astro-doc-builder:
build: ./builder
astro-doc:
build: .
volumes:
- ./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
network_mode: host
12 changes: 12 additions & 0 deletions run.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off
setlocal

:: Default command if no argument is provided
set COMMAND=build

:: Check if an argument is provided and use it as the command
if not "%~1"=="" set COMMAND=%~1

:: Run the Docker Compose command
docker-compose run --rm astro-doc %COMMAND%
endlocal

0 comments on commit 90d6832

Please sign in to comment.