mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 08:03:46 +00:00
fix(website): update Dockerfile to build Astro site
This commit is contained in:
parent
32c0c71a79
commit
682fe4b465
1 changed files with 6 additions and 7 deletions
|
|
@ -2,21 +2,20 @@ FROM node:22-alpine AS build
|
|||
WORKDIR /app
|
||||
RUN npm install -g pnpm
|
||||
|
||||
# Copy package files for all workspaces
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
COPY frontend/packages/website/package.json ./frontend/packages/website/
|
||||
# Copy website package
|
||||
COPY website/package.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --filter @sandbox-agent/website...
|
||||
RUN pnpm install
|
||||
|
||||
# Copy website source
|
||||
COPY frontend/packages/website ./frontend/packages/website
|
||||
COPY website/ .
|
||||
|
||||
# Build
|
||||
RUN pnpm --filter @sandbox-agent/website build
|
||||
RUN pnpm build
|
||||
|
||||
FROM caddy:alpine
|
||||
COPY --from=build /app/frontend/packages/website/dist /srv
|
||||
COPY --from=build /app/dist /srv
|
||||
RUN cat > /etc/caddy/Caddyfile <<'EOF'
|
||||
:80 {
|
||||
root * /srv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue