mirror of
https://github.com/zsai001/vstats.git
synced 2026-09-09 19:00:19 +08:00
- 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
32 lines
736 B
Docker
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"]
|