Implemented update functionallity
All checks were successful
Updater CI/CD / publish (push) Successful in 2m18s
All checks were successful
Updater CI/CD / publish (push) Successful in 2m18s
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
WORKDIR /src
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
clang \
|
||||
zlib1g-dev \
|
||||
libc6-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY . .
|
||||
RUN dotnet publish ServiceUpdater.csproj \
|
||||
-c Release \
|
||||
-o /app/publish \
|
||||
-p:PublishAot=true \
|
||||
-p:StripSymbols=true \
|
||||
-p:InvariantGlobalization=true \
|
||||
-r linux-x64 \
|
||||
--self-contained true
|
||||
|
||||
FROM debian:bookworm-slim AS final
|
||||
WORKDIR /app
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
docker.io \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=build /app/publish/ServiceUpdater /app
|
||||
COPY --from=build /app/publish/appsettings.json /app
|
||||
RUN chmod +x /app/ServiceUpdater
|
||||
ENTRYPOINT ["/app/ServiceUpdater"]
|
||||
Reference in New Issue
Block a user