Skip to content

Commit

Permalink
Fix Dockerfile build command to copy all source files and properly bu…
Browse files Browse the repository at this point in the history
…ild the binary
  • Loading branch information
ferg-cod3s committed Mar 9, 2025
1 parent 270e60d commit f971fff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ ENV SSL_CERT_DIR=/etc/ssl/certs
COPY go.mod go.sum ./
RUN go mod download

# Copy source code
COPY *.go ./
# Copy source code (all Go files, not just *.go)
COPY . .

# Build with CGO enabled for chromedp
RUN CGO_ENABLED=1 GOOS=linux go build -o /app/ogdrip-backend *.go
RUN CGO_ENABLED=1 GOOS=linux go build -v -o /app/ogdrip-backend

# Production image
FROM debian:bookworm-slim
Expand Down

0 comments on commit f971fff

Please sign in to comment.