This commit is contained in:
@@ -11,10 +11,12 @@ RUN go mod download
|
||||
|
||||
# Copy source code and environment files
|
||||
COPY *.go ./
|
||||
COPY internal/ ./internal/
|
||||
COPY cmd/ ./cmd/
|
||||
COPY .env* ./
|
||||
|
||||
# Build the application
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main ./cmd/api
|
||||
|
||||
# Build stage for React frontend
|
||||
FROM node:18-alpine AS frontend-builder
|
||||
|
||||
Reference in New Issue
Block a user