mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 12:03:53 +00:00
feat: add website package with Vite and Caddy
This commit is contained in:
parent
4b483afbae
commit
924bacae4e
5 changed files with 49 additions and 0 deletions
5
frontend/packages/website/Caddyfile
Normal file
5
frontend/packages/website/Caddyfile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
:80 {
|
||||
root * /srv
|
||||
file_server
|
||||
try_files {path} /index.html
|
||||
}
|
||||
12
frontend/packages/website/Dockerfile
Normal file
12
frontend/packages/website/Dockerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
COPY Caddyfile /etc/caddy/Caddyfile
|
||||
EXPOSE 80
|
||||
10
frontend/packages/website/index.html
Normal file
10
frontend/packages/website/index.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Sandbox Agent</title>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
15
frontend/packages/website/package.json
Normal file
15
frontend/packages/website/package.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"name": "@sandbox-agent/website",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"license": "Apache-2.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^5.4.7"
|
||||
}
|
||||
}
|
||||
7
frontend/packages/website/vite.config.ts
Normal file
7
frontend/packages/website/vite.config.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
port: 3000
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue