mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
13 lines
367 B
Docker
13 lines
367 B
Docker
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"]
|