diff --git a/Dockerfile b/Dockerfile index 58c7009..692f1ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM docker.io/library/golang:1.24-alpine AS build-env # Install build dependencies RUN apk --no-cache add \ build-base \ + sqlite-dev \ && rm -rf /var/cache/apk/* # Set up the working directory @@ -19,7 +20,7 @@ RUN go mod download COPY . . # Build the application -RUN CGO_ENABLED=0 go build -tags sqlite_allow_null_time -o transcriber . +RUN go build -o transcriber . # ---------------- # Production stage diff --git a/go.mod b/go.mod index c25cb8a..990630b 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module git.vakhrushev.me/av/transcriber go 1.24.5 require ( + github.com/BurntSushi/toml v1.5.0 github.com/aws/aws-sdk-go-v2 v1.37.2 github.com/aws/aws-sdk-go-v2/config v1.30.3 github.com/aws/aws-sdk-go-v2/credentials v1.18.3 @@ -13,7 +14,7 @@ require ( github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1 github.com/google/uuid v1.6.0 github.com/joho/godotenv v1.5.1 - github.com/mattn/go-sqlite3 v1.14.17 + github.com/mattn/go-sqlite3 v1.14.31 github.com/pressly/goose/v3 v3.15.1 github.com/prometheus/client_golang v1.23.0 github.com/samber/slog-gin v1.15.1 @@ -23,7 +24,6 @@ require ( ) require ( - github.com/BurntSushi/toml v1.5.0 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.0 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.2 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.2 // indirect diff --git a/go.sum b/go.sum index 2339d41..4507df5 100644 --- a/go.sum +++ b/go.sum @@ -117,8 +117,8 @@ github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= -github.com/mattn/go-sqlite3 v1.14.17 h1:mCRHCLDUBXgpKAqIKsaAaAsrAlbkeomtRFKXh2L6YIM= -github.com/mattn/go-sqlite3 v1.14.17/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= +github.com/mattn/go-sqlite3 v1.14.31 h1:ldt6ghyPJsokUIlksH63gWZkG6qVGeEAu4zLeS4aVZM= +github.com/mattn/go-sqlite3 v1.14.31/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=