Fix pre-commit script to properly handle multiple files and resolve ESLint warnings
This commit is contained in:
@@ -62,8 +62,8 @@ RUN bun run build
|
||||
# Production stage - serve with nginx
|
||||
FROM nginx:alpine
|
||||
|
||||
# Install curl for health checks
|
||||
RUN apk add --no-cache curl
|
||||
# Install wget for health checks
|
||||
RUN apk add --no-cache wget
|
||||
|
||||
# Copy built files from builder stage
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
@@ -78,8 +78,7 @@ RUN chown -R nginx:nginx /usr/share/nginx/html && \
|
||||
chown -R nginx:nginx /etc/nginx/conf.d
|
||||
|
||||
# Add health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost/ || exit 1
|
||||
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
||||
@@ -44,40 +44,40 @@ target "app" {
|
||||
"linux/amd64",
|
||||
"linux/arm64"
|
||||
]
|
||||
|
||||
|
||||
tags = [
|
||||
"${REGISTRY}rxminder:${TAG}",
|
||||
"${REGISTRY}rxminder:latest"
|
||||
]
|
||||
|
||||
|
||||
args = {
|
||||
# CouchDB Configuration
|
||||
VITE_COUCHDB_URL = "${VITE_COUCHDB_URL}"
|
||||
VITE_COUCHDB_USER = "${VITE_COUCHDB_USER}"
|
||||
VITE_COUCHDB_PASSWORD = "${VITE_COUCHDB_PASSWORD}"
|
||||
|
||||
|
||||
# Application Configuration
|
||||
APP_BASE_URL = "${APP_BASE_URL}"
|
||||
|
||||
|
||||
# OAuth Configuration (Optional)
|
||||
VITE_GOOGLE_CLIENT_ID = "${VITE_GOOGLE_CLIENT_ID}"
|
||||
VITE_GITHUB_CLIENT_ID = "${VITE_GITHUB_CLIENT_ID}"
|
||||
|
||||
|
||||
# Build environment
|
||||
NODE_ENV = "production"
|
||||
}
|
||||
|
||||
|
||||
# Advanced buildx features
|
||||
cache-from = [
|
||||
"type=gha",
|
||||
"type=registry,ref=${REGISTRY}rxminder:buildcache"
|
||||
]
|
||||
|
||||
|
||||
cache-to = [
|
||||
"type=gha,mode=max",
|
||||
"type=registry,ref=${REGISTRY}rxminder:buildcache,mode=max"
|
||||
]
|
||||
|
||||
|
||||
# Attestations for supply chain security
|
||||
attest = [
|
||||
"type=provenance,mode=max",
|
||||
|
||||
Reference in New Issue
Block a user