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