mirror of
https://github.com/Sanae6/SmoOnlineServer
synced 2025-10-05 22:12:40 +02:00
fix: Dockerfile warnings
WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 4) WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 37) WARN: FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" (line 4)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
################################################################################
|
||||
################################################################## build ###
|
||||
|
||||
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:6.0 as build
|
||||
FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
@@ -34,7 +34,7 @@ RUN dotnet publish \
|
||||
################################################################################
|
||||
################################################################ runtime ###
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/runtime:6.0 as runtime
|
||||
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS runtime
|
||||
|
||||
# Copy application binary from build stage
|
||||
COPY --from=build /app/out/ /app/
|
||||
|
Reference in New Issue
Block a user