Speedofmastery commited on
Commit
b0e8b7b
·
1 Parent(s): b299500

Auto-commit: Dockerfile updated

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -11,9 +11,10 @@ WORKDIR /build
11
  # Copy landrun source
12
  COPY landrun-main/ ./
13
 
14
- # Build landrun
15
- RUN cd cmd/landrun && \
16
- go build -ldflags="-s -w" -o /usr/local/bin/landrun main.go
 
17
 
18
  # Stage 2: Production image with Python + landrun
19
  FROM python:3.11-slim-bookworm
 
11
  # Copy landrun source
12
  COPY landrun-main/ ./
13
 
14
+ # Initialize Go modules and build
15
+ RUN go mod download && \
16
+ cd cmd/landrun && \
17
+ go build -ldflags="-s -w" -o /landrun main.go
18
 
19
  # Stage 2: Production image with Python + landrun
20
  FROM python:3.11-slim-bookworm