17 lines
563 B
Docker
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"] |