Compare commits

...

2 commits

Author SHA1 Message Date
90bfb3f950 Fix container build failure
All checks were successful
/ docker (push) Successful in 1m23s
2025-03-25 12:12:35 +01:00
dc317a9bcb Fix dbresolver stupidity 2025-03-25 12:12:26 +01:00
2 changed files with 3 additions and 9 deletions

View file

@ -1,18 +1,12 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM golang:1.23 AS build-stage FROM docker.io/library/golang:1.23 AS build-stage
WORKDIR /app WORKDIR /app
COPY go.mod ./ COPY go.mod ./
COPY go.sum ./ COPY go.sum ./
RUN go mod download RUN go mod download
COPY *.go ./ COPY . .
COPY ./templates/ ./templates/
COPY ./well-known/ ./well-known/
COPY ./static/ ./static/
COPY humans.txt ./
COPY robots.txt ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /mstar RUN CGO_ENABLED=0 GOOS=linux go build -o /mstar
FROM scratch AS build-release-stage FROM scratch AS build-release-stage

2
go.mod
View file

@ -8,6 +8,7 @@ require (
github.com/rs/zerolog v1.33.0 github.com/rs/zerolog v1.33.0
gorm.io/gen v0.3.26 gorm.io/gen v0.3.26
gorm.io/gorm v1.25.12 gorm.io/gorm v1.25.12
gorm.io/plugin/dbresolver v1.5.3
) )
require ( require (
@ -28,7 +29,6 @@ require (
gorm.io/datatypes v1.1.1-0.20230130040222-c43177d3cf8c // indirect gorm.io/datatypes v1.1.1-0.20230130040222-c43177d3cf8c // indirect
gorm.io/driver/mysql v1.5.7 // indirect gorm.io/driver/mysql v1.5.7 // indirect
gorm.io/hints v1.1.0 // indirect gorm.io/hints v1.1.0 // indirect
gorm.io/plugin/dbresolver v1.5.3 // indirect
modernc.org/libc v1.22.5 // indirect modernc.org/libc v1.22.5 // indirect
modernc.org/mathutil v1.5.0 // indirect modernc.org/mathutil v1.5.0 // indirect
modernc.org/memory v1.5.0 // indirect modernc.org/memory v1.5.0 // indirect