Files
vstats/Dockerfile.cloud.prebuilt
zsai001 16050c3084 feat: add VStats Cloud backend and update frontend
- Add Go Cloud backend (server-go/cmd/cloud)
  - OAuth login (GitHub/Google)
  - Server management API
  - WebSocket for real-time metrics
  - PostgreSQL + Redis integration

- Update docs-site frontend
  - Add API service layer
  - Rewrite Cloud.tsx with server management UI
  - Add Vite proxy for development

- Add Docker support
  - Dockerfile.cloud for Cloud service
  - Update docker-compose.yml
  - Add nginx configuration

- Update GitHub Actions
  - Add Cloud Docker image build
  - Update deploy workflow
2025-12-08 07:44:44 +08:00

32 lines
736 B
Docker

# ===========================================
# VStats Cloud - Pre-built Binary
# ===========================================
# This Dockerfile is used in CI to create images
# from pre-built binaries
FROM alpine:3.19
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
# Copy pre-built binary based on architecture
ARG TARGETARCH
COPY vstats-cloud-linux-${TARGETARCH} /app/vstats-cloud
RUN chmod +x /app/vstats-cloud
# Create non-root user
RUN adduser -D -u 1000 vstats && \
chown -R vstats:vstats /app
USER vstats
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget -q --spider http://localhost:3001/health || exit 1
EXPOSE 3001
ENTRYPOINT ["./vstats-cloud"]