This commit is contained in:
+4
-4
@@ -40,15 +40,15 @@ RUN dotnet restore './MistoxWebsite.Server.csproj'
|
||||
COPY ./src/MistoxWebsite.Server/ ./
|
||||
|
||||
# Get the target arch
|
||||
ARG TARGETOS TARGETARCH
|
||||
ARG TARGETARCH
|
||||
|
||||
# Build the source
|
||||
RUN set -e && \
|
||||
if [ "$TARGETARCH" = "arm64" ]; then RID="arm64"; \
|
||||
elif [ "$TARGETARCH" = "amd64" ]; then RID="x64"; \
|
||||
if [ "$TARGETARCH" = "arm64" ]; then RID="linux-arm64"; \
|
||||
elif [ "$TARGETARCH" = "amd64" ]; then RID="linux-x64"; \
|
||||
else echo "Unsupported ARCH: $TARGETARCH"; exit 1; \
|
||||
fi && \
|
||||
dotnet publish './MistoxWebsite.Server.csproj' -c Release -r linux-$RID -o /app/publish
|
||||
dotnet publish './MistoxWebsite.Server.csproj' -c Release -r ${RID} -o /app/publish
|
||||
|
||||
################
|
||||
## Publish ##
|
||||
|
||||
Reference in New Issue
Block a user