Upload files to "/"

This commit is contained in:
2026-06-30 03:21:59 +00:00
parent b3b5ee4823
commit 59e9d49093
5 changed files with 51 additions and 0 deletions

1
.env Normal file
View File

@@ -0,0 +1 @@
DOMAIN=draw.ui.backend-3.com

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM node:20-bookworm AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine AS runner
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80

19
docker-compose.yml Normal file
View File

@@ -0,0 +1,19 @@
services:
perfect-freehand-demo:
build:
context: /srv/sites/draw/perfect-freehand-demo
dockerfile: Dockerfile
image: perfect-freehand-demo:latest
container_name: perfect-freehand-demo
restart: unless-stopped
expose:
- "80"
networks:
- web
labels:
caddy: draw.ui.backend-3.com
caddy.reverse_proxy: "{{upstreams 80}}"
networks:
web:
external: true

15
package.json Normal file
View File

@@ -0,0 +1,15 @@
{
"name": "perfect-freehand-demo",
"private": true,
"version": "1.0.0",
"type": "module",
"scripts": {
"build": "vite build"
},
"dependencies": {
"perfect-freehand": "^1.2.2"
},
"devDependencies": {
"vite": "^5.4.0"
}
}

4
styles.css Normal file

File diff suppressed because one or more lines are too long