Compare commits

..

No commits in common. "90bfb3f950d927d1d295e3dc6adb58bc066b2a00" and "2920dcbfecaf5cda455dddb70bc669a9a38b8f08" have entirely different histories.

2 changed files with 9 additions and 3 deletions

View file

@ -1,12 +1,18 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM docker.io/library/golang:1.23 AS build-stage FROM 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 . . COPY *.go ./
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,7 +8,6 @@ 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 (
@ -29,6 +28,7 @@ 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