mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Create a migration dockerfile
This commit is contained in:
parent
9740a5d0d4
commit
d24d18ea8e
12
back/Dockerfile.migrations
Normal file
12
back/Dockerfile.migrations
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 as builder
|
||||||
|
ARG TARGETARCH
|
||||||
|
WORKDIR /kyoo
|
||||||
|
|
||||||
|
COPY .config/dotnet-tools.json .config/dotnet-tools.json
|
||||||
|
RUN dotnet tool restore
|
||||||
|
COPY . .
|
||||||
|
RUN dotnet ef migrations bundle --self-contained -f -o /app/migrate -p src/Kyoo.Postgresql --verbose
|
||||||
|
|
||||||
|
FROM alpine
|
||||||
|
COPY --from=builder /app /app
|
||||||
|
ENTRYPOINT ["/app/migrate"]
|
Loading…
x
Reference in New Issue
Block a user