Compare commits
2 commits
2920dcbfec
...
90bfb3f950
Author | SHA1 | Date | |
---|---|---|---|
90bfb3f950 | |||
dc317a9bcb |
2 changed files with 3 additions and 9 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,18 +1,12 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
FROM golang:1.23 AS build-stage
|
||||
FROM docker.io/library/golang:1.23 AS build-stage
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod ./
|
||||
COPY go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY *.go ./
|
||||
COPY ./templates/ ./templates/
|
||||
COPY ./well-known/ ./well-known/
|
||||
COPY ./static/ ./static/
|
||||
COPY humans.txt ./
|
||||
COPY robots.txt ./
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /mstar
|
||||
|
||||
FROM scratch AS build-release-stage
|
||||
|
|
2
go.mod
2
go.mod
|
@ -8,6 +8,7 @@ require (
|
|||
github.com/rs/zerolog v1.33.0
|
||||
gorm.io/gen v0.3.26
|
||||
gorm.io/gorm v1.25.12
|
||||
gorm.io/plugin/dbresolver v1.5.3
|
||||
)
|
||||
|
||||
require (
|
||||
|
@ -28,7 +29,6 @@ require (
|
|||
gorm.io/datatypes v1.1.1-0.20230130040222-c43177d3cf8c // indirect
|
||||
gorm.io/driver/mysql v1.5.7 // 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/mathutil v1.5.0 // indirect
|
||||
modernc.org/memory v1.5.0 // indirect
|
||||
|
|
Loading…
Reference in a new issue