- Add Go modules with required dependencies (Gin, UUID, JWT, etc.) - Implement main web server with landing page endpoint - Add comprehensive API endpoints for health and status - Include proper error handling and request validation - Set up CORS middleware and security headers
17 lines
267 B
Docker
17 lines
267 B
Docker
# Test Dockerfile
|
|
FROM golang:1.21-alpine AS tester
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
RUN apk add --no-cache curl bc jq
|
|
|
|
# Copy go mod files
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
# Copy source and tests
|
|
COPY . ./
|
|
|
|
# Run tests
|
|
CMD ["sh", "tests/run_tests.sh"] |