Spaces:
Sleeping
Sleeping
Commit ·
b0e8b7b
1
Parent(s): b299500
Auto-commit: Dockerfile updated
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -11,9 +11,10 @@ WORKDIR /build
|
|
| 11 |
# Copy landrun source
|
| 12 |
COPY landrun-main/ ./
|
| 13 |
|
| 14 |
-
#
|
| 15 |
-
RUN
|
| 16 |
-
|
|
|
|
| 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
|