Files
TideFin.Server/Dockerfile
David Claeys 56d93c4c33 init project
2025-11-28 10:38:38 +01:00

17 lines
563 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine-amd64 AS build-env
WORKDIR /App
COPY . ./
# Restore dependencies for your application
RUN dotnet restore
# Build your application
RUN dotnet publish TideFin.Server --no-restore --self-contained false -c Release -o out /p:UseAppHost=false
FROM git.claeyscloud.com/david/net-base:10.0.0-alpine-22
WORKDIR /App
# copy build files from build-stage
COPY --from=build-env /App/out .
# change ownership of files to the app user
RUN chown -R app:app /App/
# entrypoint for image
ENTRYPOINT ["dotnet", "TideFin.Server.dll"]