Skip to content

armgit / lyftr

Public Imported from GitHub
0

Self-hosted fitness tracker. Log workouts, track nutrition, and monitor progress. Docker deployment, mobile-friendly.

Fix backend Dockerfile: bump to Go 1.26, fix build target

Cawlummd9e75d360a0e
diff --git a/backend/Dockerfile b/backend/Dockerfile
index 395064b..1823840 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -1,5 +1,5 @@
# Stage 1: Build
-FROM golang:1.23-alpine AS builder
+FROM golang:1.26-alpine AS builder
WORKDIR /build
@@ -9,7 +9,7 @@ RUN go mod download
# Copy source and build a statically linked binary
COPY . .
-RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o lyftr-api ./...
+RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o lyftr-api .
# Stage 2: Runtime
FROM alpine:3.19