mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-01 04:34:50 -04:00
Handle connection string for migrations
This commit is contained in:
parent
646df0f393
commit
ea979d9663
@ -19,7 +19,7 @@ COPY . .
|
|||||||
ARG VERSION
|
ARG VERSION
|
||||||
RUN dotnet publish -a $TARGETARCH --no-restore -c Release -o /app "-p:Version=${VERSION:-"0.0.0-dev"}" src/Kyoo.Host
|
RUN dotnet publish -a $TARGETARCH --no-restore -c Release -o /app "-p:Version=${VERSION:-"0.0.0-dev"}" src/Kyoo.Host
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||||
RUN apt-get update && apt-get install -y curl
|
RUN apt-get update && apt-get install -y curl
|
||||||
COPY --from=builder /app /app
|
COPY --from=builder /app /app
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ RUN dotnet tool restore
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN dotnet ef migrations bundle --self-contained -f -o /app/migrate -p src/Kyoo.Postgresql --verbose
|
RUN dotnet ef migrations bundle --self-contained -f -o /app/migrate -p src/Kyoo.Postgresql --verbose
|
||||||
|
|
||||||
FROM alpine
|
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0
|
||||||
COPY --from=builder /app /app
|
COPY --from=builder /app/migrate /app/migrate
|
||||||
ENTRYPOINT ["/app/migrate"]
|
|
||||||
|
ENTRYPOINT /app/migrate --connection "USER ID=${POSTGRES_USER};PASSWORD=${POSTGRES_PASSWORD};SERVER=postgres;PORT=5432;DATABASE=${POSTGRES_DB};"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user