feat: implement core Go application with web server
- 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
This commit is contained in:
20
output/Dockerfile.simple
Normal file
20
output/Dockerfile.simple
Normal file
@@ -0,0 +1,20 @@
|
||||
# Simple stage
|
||||
FROM golang:1.21-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY cmd/simple_main.go ./
|
||||
RUN go build -o simple-main simple_main.go
|
||||
|
||||
# Final stage
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk --no-cache add ca-certificates curl
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/simple-main .
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["./simple-main"]
|
||||
Reference in New Issue
Block a user