2023-02-14 15:06:39 -05:00
|
|
|
#Builds the bot from source
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-task
|
2023-02-13 19:18:34 -05:00
|
|
|
|
2023-02-14 15:06:39 -05:00
|
|
|
COPY . /build
|
|
|
|
RUN cd /build && dotnet publish
|
2023-02-13 19:18:34 -05:00
|
|
|
|
2023-02-14 15:06:39 -05:00
|
|
|
# Actually runs the bot
|
|
|
|
FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine3
|
2023-02-13 19:18:34 -05:00
|
|
|
|
2023-02-14 15:06:39 -05:00
|
|
|
WORKDIR /app/teletok
|
2023-02-13 19:18:34 -05:00
|
|
|
|
2023-02-14 15:06:39 -05:00
|
|
|
COPY --from=build-task /build/bin/Debug/net6.0/publish/* /app/teletok/
|
2023-02-13 19:18:34 -05:00
|
|
|
|
|
|
|
CMD [ "TeleTok" ]
|