Skip to content

Commit cd1f8e0

Browse files
fix: build migrator dockerfile
1 parent c3ce6d3 commit cd1f8e0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

service/auth/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN go build -o app/main service/auth/cmd/app/main.go
1515

1616

1717
# runtime stage
18-
FROM alpine:3.20 as runtime
18+
FROM scratch as runtime
1919

2020
WORKDIR /opt/service/auth
2121

service/auth/migration.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ WORKDIR /opt
1010
COPY service/auth/migrations ./migrations
1111

1212
ENV GOOSE_DBSTRING=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?sslmode=disable
13-
RUN /bin/goose -dir ./migrations/postgres postgres up
13+
14+
ENTRYPOINT ["/bin/sh", "-c", "/bin/goose -dir ./migrations/postgres postgres up"]

0 commit comments

Comments
 (0)