mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-05 20:12:33 +02:00
Refactor repo structure
This commit is contained in:
parent
36ac339086
commit
8fc89fbc03
1732 changed files with 3812 additions and 67 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
|
||||
WORKDIR /App
|
||||
|
||||
# Copy everything
|
||||
COPY ./Bot ./
|
||||
# Restore as distinct layers
|
||||
RUN dotnet restore
|
||||
# Build and publish a release
|
||||
RUN dotnet publish -c Release -o out
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
WORKDIR /App
|
||||
# Copy the compiled binaries from the build stage container
|
||||
COPY --from=build-env /App/out .
|
||||
# Copy all the static data (questions, motd)
|
||||
COPY ./Data /data
|
||||
ENTRYPOINT ["dotnet", "HomeBot.dll"]
|
Loading…
Add table
Add a link
Reference in a new issue