mirror of
https://github.com/bitwarden/server.git
synced 2025-12-10 00:42:07 -06:00
Fix Dockerfiles that had BUILDPLATFORM specified for App Stages (#6162)
This commit is contained in:
parent
14899eb883
commit
25a54b16f7
@ -37,7 +37,7 @@ RUN . /tmp/rid.txt && dotnet publish \
|
||||
###############################################
|
||||
# App stage #
|
||||
###############################################
|
||||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.21
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.21
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
LABEL com.bitwarden.product="bitwarden"
|
||||
|
||||
@ -37,7 +37,7 @@ RUN . /tmp/rid.txt && dotnet publish \
|
||||
###############################################
|
||||
# App stage #
|
||||
###############################################
|
||||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.21
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.21
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
LABEL com.bitwarden.product="bitwarden"
|
||||
|
||||
@ -37,7 +37,7 @@ RUN . /tmp/rid.txt && dotnet publish \
|
||||
###############################################
|
||||
# App stage #
|
||||
###############################################
|
||||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.21
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.21
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
LABEL com.bitwarden.product="bitwarden"
|
||||
|
||||
@ -26,7 +26,6 @@ WORKDIR /source/util/Setup
|
||||
RUN . /tmp/rid.txt && dotnet restore -r $RID
|
||||
|
||||
# Build project
|
||||
WORKDIR /source/util/Setup
|
||||
RUN . /tmp/rid.txt && dotnet publish \
|
||||
-c release \
|
||||
--no-restore \
|
||||
@ -38,7 +37,7 @@ RUN . /tmp/rid.txt && dotnet publish \
|
||||
###############################################
|
||||
# App stage #
|
||||
###############################################
|
||||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.21
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.21
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
LABEL com.bitwarden.product="bitwarden" com.bitwarden.project="setup"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user