fix podman build
This commit is contained in:
parent
d11cea32fb
commit
ff70f21416
|
@ -11,3 +11,5 @@
|
||||||
**/bin
|
**/bin
|
||||||
**/Dockerfile*
|
**/Dockerfile*
|
||||||
**/obj
|
**/obj
|
||||||
|
**/target
|
||||||
|
**/examples
|
||||||
|
|
|
@ -1,18 +1,10 @@
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build-server
|
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build-server
|
||||||
|
|
||||||
RUN apk add clang binutils musl-dev build-base zlib-static cmake openssl-dev openssl-libs-static openssl
|
RUN apk add clang binutils musl-dev build-base zlib-static cmake openssl-dev openssl-libs-static openssl
|
||||||
|
RUN apk add rust cargo
|
||||||
|
|
||||||
WORKDIR /src/tanks-server
|
WORKDIR /src/tanks-server
|
||||||
|
|
||||||
# dependencies
|
|
||||||
COPY ./shared.props .
|
|
||||||
COPY ./TanksServer.sln .
|
|
||||||
COPY ./EndiannessSourceGenerator/EndiannessSourceGenerator.csproj EndiannessSourceGenerator/EndiannessSourceGenerator.csproj
|
|
||||||
COPY ./DisplayCommands/DisplayCommands.csproj DisplayCommands/DisplayCommands.csproj
|
|
||||||
COPY ./TanksServer/TanksServer.csproj TanksServer/TanksServer.csproj
|
|
||||||
RUN dotnet restore --runtime linux-musl-x64 TanksServer.sln
|
|
||||||
|
|
||||||
#build
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN dotnet build TanksServer/TanksServer.csproj -c Release -r linux-musl-x64 -o /build
|
RUN dotnet build TanksServer/TanksServer.csproj -c Release -r linux-musl-x64 -o /build
|
||||||
RUN dotnet publish TanksServer/TanksServer.csproj -c Release -r linux-musl-x64 -o /app
|
RUN dotnet publish TanksServer/TanksServer.csproj -c Release -r linux-musl-x64 -o /app
|
||||||
|
|
Loading…
Reference in a new issue