mirror of
https://github.com/versia-pub/versia-go.git
synced 2026-03-12 20:19:15 +01:00
refactor!: working WD-4 user discovery
This commit is contained in:
parent
cf0053312d
commit
61891d891a
91 changed files with 12768 additions and 5562 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
FROM golang:1.23-alpine AS builder
|
||||
WORKDIR /build
|
||||
|
||||
COPY ./go.mod .
|
||||
COPY ./go.sum .
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o /build/versia-go
|
||||
|
||||
FROM alpine:3 AS runner
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add curl --no-cache
|
||||
|
||||
# Copy over some sources to get Sentry's source mapping working in Go
|
||||
# https://docs.sentry.io/platforms/go/troubleshooting/#missing-stack-trace
|
||||
COPY ./pkg /app/pkg
|
||||
COPY ./internal /app/internal
|
||||
COPY ./ent app/ent
|
||||
|
||||
COPY --from=builder /build/versia-go /usr/local/bin/versia-go
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/versia-go" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue