redesign fully scaffolded and web login works
This commit is contained in:
@@ -6,12 +6,11 @@ WORKDIR /app
|
||||
# Install build dependencies
|
||||
RUN apk add --no-cache git ca-certificates
|
||||
|
||||
# Copy go mod files
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
# Copy go mod and source files
|
||||
COPY go.mod main.go ./
|
||||
|
||||
# Copy source
|
||||
COPY main.go ./
|
||||
# Tidy and download dependencies (generates go.sum)
|
||||
RUN go mod tidy && go mod download && go mod verify
|
||||
|
||||
# Build static binary
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
@@ -226,7 +227,7 @@ func init() {
|
||||
// Don't trigger deployment deletion on sidecar termination
|
||||
go func() {
|
||||
sigChan := make(chan os.Signal, 1)
|
||||
syscall.Signal(syscall.SIGTERM)
|
||||
signal.Notify(sigChan, syscall.SIGTERM)
|
||||
<-sigChan
|
||||
log.Info().Msg("Received SIGTERM - sidecar exiting without cleanup")
|
||||
os.Exit(0)
|
||||
|
||||
Reference in New Issue
Block a user