refactor: 移除Docker相关文件和Zeabur部署文档

This commit is contained in:
zhang1106
2026-03-05 11:23:35 +08:00
parent df125181ce
commit 0bb51ec6ac
8 changed files with 0 additions and 316 deletions
-19
View File
@@ -1,19 +0,0 @@
node_modules
npm-debug.log
.env
.env.local
.env.*.local
dist
.git
.gitignore
*.md
.DS_Store
Thumbs.db
*.log
coverage
.nyc_output
.vscode
.idea
*.swp
*.swo
*~
-23
View File
@@ -1,23 +0,0 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
ARG VITE_API_URL
ENV VITE_API_URL=$VITE_API_URL
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/templates/default.conf.template
EXPOSE 80
CMD ["sh", "-c", "envsubst '${BACKEND_URL}' < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"]
-41
View File
@@ -1,41 +0,0 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_min_length 1000;
location / {
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass ${BACKEND_URL};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
proxy_read_timeout 86400;
}
location /uploads {
proxy_pass ${BACKEND_URL};
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|hdr)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}
-1
View File
@@ -35,7 +35,6 @@ const getFrontendPort = () => {
const port = getFrontendPort();
export default defineConfig({
base: '/',
plugins: [
react(),
Components({