chore: port lab 2 solution

This commit is contained in:
kk10
2026-10-16 19:50:49 +03:00
parent 0ab3a341aa
commit 6e0829e628
71 changed files with 4305 additions and 6 deletions
+8
View File
@@ -0,0 +1,8 @@
FROM golang:1.27.1-alpine3.24 AS build
ENV CGO_ENABLED=0
RUN go install github.com/pressly/goose/v3/cmd/goose@v3.28.0
FROM alpine:3.24
COPY --from=build /go/bin/goose /usr/local/bin/goose
COPY db/migrations /migrations
ENTRYPOINT ["sh", "-c", "goose -dir /migrations postgres \"$(cat /run/secrets/database_url)\" up"]