mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +00:00
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:
parent
5b2c642d9a
commit
ff37b2886c
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user