Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ RUN corepack enable
RUN pnpm config set store-dir /home/node/.local/share/pnpm/store

WORKDIR /app

COPY package.json pnpm-lock.yaml ./
RUN pnpm install

RUN mkdir -p /app/src
13 changes: 9 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ services:
build:
context: .
dockerfile: Dockerfile
entrypoint: ["bash", "-c"]
command: ["pnpm install && pnpm run dev --host 0.0.0.0"]
volumes:
- .:/app
command: ["pnpm", "run", "dev", "--host", "0.0.0.0"]
ports:
- "4321:4321"
environment:
- ASTRO_TELEMETRY_DISABLED=1
- NODE_ENV=development
volumes:
- .:/app
- node_modules:/app/node_modules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add pnpm_store as well?

- .pnpm-store:/app/.pnpm-store

volumes:
node_modules: