feat: added bootstrap cli (removed db migration from service)

This commit is contained in:
2026-08-21 11:09:08 +02:00
parent 82bbccd817
commit 7ab6876005
4 changed files with 115 additions and 20 deletions
+10 -5
View File
@@ -1,8 +1,10 @@
FROM golang:1.26 AS build
FROM golang:1.26-alpine AS build
RUN apk add --no-cache make git
WORKDIR /app
COPY go.mod go.sum ./
COPY go.mod go.sum ./
RUN go mod download
COPY "./internal" "./internal"
@@ -11,12 +13,15 @@ COPY "Makefile" "./Makefile"
RUN make build
FROM debian:latest
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY .env.docker .env
COPY --from=build /app/bin/dttmr-api /app/dttmr-api
COPY --from=build /app/bin/api /usr/local/bin/api
COPY --from=build /app/bin/bootstrap /usr/local/bin/bootstrap
EXPOSE 8080
CMD ["/app/dttmr-api"]
CMD ["api"]