mirror of
https://github.com/bitwarden/server
synced 2025-12-13 23:03:36 +00:00
Fix Dockerfiles that had BUILDPLATFORM specified for App Stages (#6162)
This commit is contained in:
@@ -37,7 +37,7 @@ RUN . /tmp/rid.txt && dotnet publish \
|
|||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# 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
|
ARG TARGETPLATFORM
|
||||||
LABEL com.bitwarden.product="bitwarden"
|
LABEL com.bitwarden.product="bitwarden"
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ RUN . /tmp/rid.txt && dotnet publish \
|
|||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# 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
|
ARG TARGETPLATFORM
|
||||||
LABEL com.bitwarden.product="bitwarden"
|
LABEL com.bitwarden.product="bitwarden"
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ RUN . /tmp/rid.txt && dotnet publish \
|
|||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# 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
|
ARG TARGETPLATFORM
|
||||||
LABEL com.bitwarden.product="bitwarden"
|
LABEL com.bitwarden.product="bitwarden"
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ WORKDIR /source/util/Setup
|
|||||||
RUN . /tmp/rid.txt && dotnet restore -r $RID
|
RUN . /tmp/rid.txt && dotnet restore -r $RID
|
||||||
|
|
||||||
# Build project
|
# Build project
|
||||||
WORKDIR /source/util/Setup
|
|
||||||
RUN . /tmp/rid.txt && dotnet publish \
|
RUN . /tmp/rid.txt && dotnet publish \
|
||||||
-c release \
|
-c release \
|
||||||
--no-restore \
|
--no-restore \
|
||||||
@@ -38,7 +37,7 @@ RUN . /tmp/rid.txt && dotnet publish \
|
|||||||
###############################################
|
###############################################
|
||||||
# App stage #
|
# 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
|
ARG TARGETPLATFORM
|
||||||
LABEL com.bitwarden.product="bitwarden" com.bitwarden.project="setup"
|
LABEL com.bitwarden.product="bitwarden" com.bitwarden.project="setup"
|
||||||
|
|||||||
Reference in New Issue
Block a user