init project
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user