feature: move schema updates into a separate oneshot service
This commit is contained in:
parent
de51bd9015
commit
a8bcde76e2
4 changed files with 198 additions and 12 deletions
14
cmd/update-db-schema/Dockerfile
Normal file
14
cmd/update-db-schema/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM golang:1.22.3 as builder
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . ./
|
||||
RUN go build -trimpath ./cmd/update-db-schema
|
||||
|
||||
FROM alpine:latest as certs
|
||||
RUN apk --update add ca-certificates
|
||||
|
||||
FROM debian:stable-slim
|
||||
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY --from=builder /app/update-db-schema .
|
||||
ENTRYPOINT ["./update-db-schema"]
|
Loading…
Add table
Add a link
Reference in a new issue