mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 17:01:02 +00:00
18 lines
313 B
Docker
18 lines
313 B
Docker
FROM node:22-alpine AS build
|
|
WORKDIR /app
|
|
RUN npm install -g pnpm
|
|
COPY package.json pnpm-lock.yaml* ./
|
|
RUN pnpm install
|
|
COPY . .
|
|
RUN pnpm build
|
|
|
|
FROM caddy:alpine
|
|
COPY --from=build /app/dist /srv
|
|
RUN cat > /etc/caddy/Caddyfile <<'EOF'
|
|
:80 {
|
|
root * /srv
|
|
file_server
|
|
try_files {path} /index.html
|
|
}
|
|
EOF
|
|
EXPOSE 80
|