fix: correct Dockerfile build path to ./cmd/api

- Fix Docker build to target ./cmd/api instead of root directory
- The main.go file is located in cmd/api/ subdirectory
This commit is contained in:
Damir Mukimov 2025-11-27 07:04:53 +01:00
parent 5b2c642d9a
commit ff37b2886c
No known key found for this signature in database
GPG Key ID: 42996CC7C73BC750

View File

@ -16,7 +16,7 @@ RUN go mod download
COPY . . COPY . .
# Build the application with optimizations # Build the application with optimizations
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags="-s -w" -o tercul . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags="-s -w" -o tercul ./cmd/api
# Use a small alpine image for the final container # Use a small alpine image for the final container
FROM alpine:latest FROM alpine:latest