mirror of
https://github.com/XFox111/backbone.git
synced 2026-04-22 07:17:59 +03:00
init: inital commit
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
|
||||
WORKDIR /build
|
||||
|
||||
# Installing additional dev dependencies for AOT
|
||||
RUN apk add clang binutils musl-dev build-base zlib-static
|
||||
|
||||
ADD *.csproj .
|
||||
RUN dotnet restore --runtime linux-musl-x64
|
||||
|
||||
ADD . ./
|
||||
RUN dotnet publish --configuration Release --no-restore --output /out
|
||||
|
||||
FROM scratch AS prod
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /out/Backbone .
|
||||
COPY --from=build /out/appsettings*.json .
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "./Backbone", "--urls", "http://*:80" ]
|
||||
Reference in New Issue
Block a user