mudancinhas
All checks were successful
Mindforge API Build and Deploy / Build Mindforge API Image (push) Successful in 2m12s
Mindforge API Build and Deploy / Deploy Mindforge API (internal) (push) Successful in 8s
Mindforge Web Build and Deploy (internal) / Build Mindforge Web Image (push) Successful in 3m41s
Mindforge Web Build and Deploy (internal) / Deploy Mindforge Web (internal) (push) Successful in 8s
All checks were successful
Mindforge API Build and Deploy / Build Mindforge API Image (push) Successful in 2m12s
Mindforge API Build and Deploy / Deploy Mindforge API (internal) (push) Successful in 8s
Mindforge Web Build and Deploy (internal) / Build Mindforge Web Image (push) Successful in 3m41s
Mindforge Web Build and Deploy (internal) / Deploy Mindforge Web (internal) (push) Successful in 8s
This commit is contained in:
@@ -5,9 +5,11 @@ ARG TARGETOS
|
||||
|
||||
WORKDIR /app
|
||||
COPY Mindforge.API.csproj ./
|
||||
RUN dotnet restore -a $TARGETARCH
|
||||
RUN if [ "$TARGETARCH" = "amd64" ]; then DOTNET_ARCH="x64"; else DOTNET_ARCH="$TARGETARCH"; fi && \
|
||||
dotnet restore -a "$DOTNET_ARCH"
|
||||
COPY . .
|
||||
RUN dotnet publish -c Release -a $TARGETARCH --no-restore -o /app/publish
|
||||
RUN if [ "$TARGETARCH" = "amd64" ]; then DOTNET_ARCH="x64"; else DOTNET_ARCH="$TARGETARCH"; fi && \
|
||||
dotnet publish -c Release -a "$DOTNET_ARCH" --no-restore -o /app/publish
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user