1
0
mirror of https://github.com/XFox111/backbone.git synced 2026-04-22 07:17:59 +03:00
Files
backbone/Dockerfile
T

22 lines
502 B
Docker

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" ]
CMD [ "--urls", "http://*:80" ]