Adding multiple projects & API

This commit is contained in:
2023-11-19 16:41:00 -03:00
parent 91e36a811d
commit 441bcc4e96
16 changed files with 297 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ WORKDIR /App
# Copy everything
COPY ./Kasbot.APP ./Kasbot.APP
COPY ./Kasbot.API ./Kasbot.API
COPY ./Kasbot.sln ./Kasbot.sln
# Restore as distinct layers
@@ -13,7 +14,13 @@ RUN dotnet build -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0
RUN apt update && apt install -y ffmpeg libopus-dev opus-tools libsodium-dev
WORKDIR /App
COPY Docker/start.sh .
RUN chmod +x start.sh
COPY --from=build-env /App/out .
ENTRYPOINT ["dotnet", "Kasbot.App.dll"]
ENTRYPOINT ["./start.sh" ]